mirror of
https://github.com/lumapu/ahoy.git
synced 2025-06-14 00:21:44 +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) {
|
void onMqttMessage(JsonObject obj) {
|
||||||
if (!mIsInitialized) return;
|
if (!mIsInitialized) return;
|
||||||
mLog["t"] = "onMqttMessage";
|
|
||||||
|
|
||||||
String topic = String(obj["topic"]);
|
String topic = String(obj["topic"]);
|
||||||
if (!topic.indexOf("/zero/set/")) return;
|
if (!topic.indexOf("/zero/set/")) return;
|
||||||
|
|
||||||
|
mLog["t"] = "onMqttMessage";
|
||||||
|
|
||||||
if (obj["path"] == "zero" && obj["cmd"] == "set") {
|
if (obj["path"] == "zero" && obj["cmd"] == "set") {
|
||||||
int8_t topicGroup = getGroupFromTopic(topic.c_str());
|
int8_t topicGroup = getGroupFromTopic(topic.c_str());
|
||||||
mLog["topicGroup"] = topicGroup;
|
mLog["topicGroup"] = topicGroup;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue