Mqtt has connected to the broker

From wiki.netio-products.com
Revision as of 17:27, 11 July 2019 by Phrych (talk | contribs) (Created page with "{{DISPLAYTITLE:Script trigger Mqtt has connected to the broker}} Triggered when NETIO connects to the MQTT broker. Arguments are stored in table <code>event.args</code> === A...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Triggered when NETIO connects to the MQTT broker. Arguments are stored in table event.args

Arguments

  • mqttConnected always 1

Print arguments

-- print all arguments
for i, v in pairs(event.args) do
  logf("%s: %s",tostring(i),tostring(v))
end