allow disabling Tasmota JSON API (#1236)

* allow disabling Tasmota JSON API

* test enable
This commit is contained in:
openshwprojects
2024-05-14 11:53:26 +02:00
committed by GitHub
parent 7a7ad1eba0
commit c11a8d1e55
6 changed files with 29 additions and 3 deletions

View File

@ -21,6 +21,8 @@
#include "../driver/drv_local.h"
#include "../driver/drv_bl_shared.h"
#if ENABLE_TASMOTA_JSON
void JSON_PrintKeyValue_String(void* request, jsonCb_t printer, const char* key, const char* value, bool bComma) {
printer(request, "\"%s\":\"%s\"", key, value);
if (bComma) {
@ -1049,6 +1051,8 @@ int JSON_ProcessCommandReply(const char* cmd, const char* arg, void* request, js
return 0;
}
// close for ENABLE_TASMOTA_JSON
#endif