Update zeroExport.h

discard change
This commit is contained in:
tictrick 2024-04-09 12:21:02 +02:00 committed by GitHub
parent 39219272c2
commit 5a0b095f07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -474,11 +474,12 @@ class ZeroExport {
*/
void onMqttMessage(JsonObject obj) {
if (!mIsInitialized) return;
mLog["t"] = "onMqttMessage";
String topic = String(obj["topic"]);
if (!topic.indexOf("/zero/set/")) return;
mLog["t"] = "onMqttMessage";
if (obj["path"] == "zero" && obj["cmd"] == "set") {
int8_t topicGroup = getGroupFromTopic(topic.c_str());
mLog["topicGroup"] = topicGroup;