mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-10 22:51:36 +02:00
Update zeroExport.h
discard change
This commit is contained in:
parent
39219272c2
commit
5a0b095f07
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue