Skip to content

Commit

Permalink
Allow Flow Start MQTT topic to have a zero-length payload
Browse files Browse the repository at this point in the history
  • Loading branch information
caco3 authored Dec 2, 2024
1 parent 351b011 commit ba7b4ee
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions code/components/jomjol_mqtt/interface_mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ba7b4ee

Please sign in to comment.