Mqtt received message on subscribed topic
Jump to navigation
Jump to search
Triggered when message is published on subscribed topic. Arguments are stored in table event.args
Arguments
payload
published messagetopic
topic name
Print arguments
-- print all arguments for i, v in pairs(event.args) do logf("%s: %s",tostring(i),tostring(v)) end