This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- initiate the mqtt client and set keepalive timer to 120sec | |
mqtt = mqtt.Client("client_id", 120, "<<user>>", "<<pass>>") | |
mqtt:on("connect", function(con) print ("connected") end) | |
mqtt:on("offline", function(con) print ("offline") end) | |
-- on receive message | |
mqtt:on("message", function(conn, topic, data) | |
print(topic .. ":" ) | |
if data ~= nil then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39a40 | |
> $this->addBehavior('Tags.Tag', ['taggedCounter' => false]); |