diff --git a/src/hasp/hasp_dispatch.cpp b/src/hasp/hasp_dispatch.cpp index 291d743c..15a190d6 100644 --- a/src/hasp/hasp_dispatch.cpp +++ b/src/hasp/hasp_dispatch.cpp @@ -67,6 +67,8 @@ void dispatch_state_subtopic(const char* subtopic, const char* payload) case MQTT_ERR_NO_CONN: LOG_ERROR(TAG_MQTT, F(D_MQTT_NOT_CONNECTED " %s => %s"), subtopic, payload); break; + case MQTT_ERR_DISABLED: + break; default: LOG_ERROR(TAG_MQTT, F(D_ERROR_UNKNOWN " %s => %s"), subtopic, payload); } @@ -600,25 +602,28 @@ void dispatch_screenshot(const char*, const char* filename, uint8_t source) bool dispatch_json_variant(JsonVariant& json, uint8_t& savedPage, uint8_t source) { if(json.is()) { // handle json as an array of commands - LOG_WARNING(TAG_MSGR, "TEXT = ARRAY"); + LOG_DEBUG(TAG_MSGR, "Json ARRAY"); for(JsonVariant command : json.as()) { dispatch_json_variant(command, savedPage, source); } } else if(json.is()) { // handle json as a jsonl - LOG_WARNING(TAG_MSGR, "TEXT = OBJECT"); + LOG_DEBUG(TAG_MSGR, "Json OBJECT"); hasp_new_object(json.as(), savedPage); } else if(json.is()) { // handle json as a single command - LOG_WARNING(TAG_MSGR, "TEXT = %s", json.as().c_str()); + LOG_DEBUG(TAG_MSGR, "Json text = %s", json.as().c_str()); dispatch_simple_text_command(json.as().c_str(), source); } else if(json.is()) { // handle json as a single command - LOG_WARNING(TAG_MSGR, "TEXT = %s", json.as()); + LOG_DEBUG(TAG_MSGR, "Json text = %s", json.as()); dispatch_simple_text_command(json.as(), source); + } else if(json.isNull()) { // event handler not found + // nothing to do + } else { - LOG_WARNING(TAG_MSGR, "TEXT = unknown type"); + LOG_WARNING(TAG_MSGR, "Json has unknown type"); return false; } return true; diff --git a/user_setups/esp32/_esp32.ini b/user_setups/esp32/_esp32.ini index c5ee382a..68c48d6f 100644 --- a/user_setups/esp32/_esp32.ini +++ b/user_setups/esp32/_esp32.ini @@ -134,8 +134,8 @@ lib_deps = [arduino_esp32_v2] extends = esp32 framework = arduino -platform = https://github.com/tasmota/platform-espressif32/releases/download/v.2.0.5/platform-espressif32-v.2.0.5.zip -;platform = https://github.com/tasmota/platform-espressif32/releases/download/2022.12.2/platform-espressif32.zip +;platform = https://github.com/tasmota/platform-espressif32/releases/download/v.2.0.5/platform-espressif32-v.2.0.5.zip +platform = https://github.com/Jason2866/platform-espressif32/releases/download/2022.12.2/platform-espressif32.zip ;platform = espressif32 lib_ignore = diff --git a/user_setups/esp32s2/_esp32s2.ini b/user_setups/esp32s2/_esp32s2.ini index 01b515ca..8641eac4 100644 --- a/user_setups/esp32s2/_esp32s2.ini +++ b/user_setups/esp32s2/_esp32s2.ini @@ -74,8 +74,8 @@ fspi = [arduino_esp32s2_v2] extends = esp32s2 framework = arduino -platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4.1/platform-espressif32-2.0.4.1.zip -;platform = https://github.com/tasmota/platform-espressif32/releases/download/2022.12.2/platform-espressif32.zip +;platform = https://github.com/tasmota/platform-espressif32/releases/download/v2.0.4.1/platform-espressif32-2.0.4.1.zip +platform = https://github.com/Jason2866/platform-espressif32/releases/download/2022.12.2/platform-espressif32.zip ;platform = espressif32 ; =========================== SOLO ==============================================