From ba7b4ee1413bc35f14c2ccf6ae0be7dd7aa0b862 Mon Sep 17 00:00:00 2001 From: CaCO3 Date: Mon, 2 Dec 2024 20:36:43 +0100 Subject: [PATCH] Allow Flow Start MQTT topic to have a zero-length payload --- code/components/jomjol_mqtt/interface_mqtt.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/code/components/jomjol_mqtt/interface_mqtt.cpp b/code/components/jomjol_mqtt/interface_mqtt.cpp index cb7a0ce44..c060de78a 100644 --- a/code/components/jomjol_mqtt/interface_mqtt.cpp +++ b/code/components/jomjol_mqtt/interface_mqtt.cpp @@ -388,13 +388,7 @@ bool mqtt_handler_flow_start(std::string _topic, char* _data, int _data_len) { ESP_LOGD(TAG, "Handler called: topic %s, data %.*s", _topic.c_str(), _data_len, _data); - if (_data_len > 0) { - MQTTCtrlFlowStart(_topic); - } - else { - LogFile.WriteToFile(ESP_LOG_WARN, TAG, "handler_flow_start: handler called, but no data"); - } - + MQTTCtrlFlowStart(_topic); return ESP_OK; }