mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
Arduino v7
This commit is contained in:
@@ -278,8 +278,8 @@ const char * Command::parse_command_string(const char * command, int8_t & id) {
|
||||
// calls a command directly
|
||||
uint8_t Command::call(const uint8_t device_type, const char * cmd, const char * value) {
|
||||
// create a temporary buffer
|
||||
StaticJsonDocument<EMSESP_JSON_SIZE_SMALL> output_doc;
|
||||
JsonObject output = output_doc.to<JsonObject>();
|
||||
JsonDocument output_doc;
|
||||
JsonObject output = output_doc.to<JsonObject>();
|
||||
|
||||
// authenticated is always true and ID is the default value
|
||||
return call(device_type, cmd, value, true, -1, output);
|
||||
|
||||
Reference in New Issue
Block a user