function devices.system.MqttPublish()
Jump to navigation
Jump to search
Publish a message to MQTT topic
nil devices.system.MqttPublish(table config
)
Parameters
table config{topic
}
- string
topic
name of topic - string
payload
message to be sent
Return value
nil
Usage
-- send information about first output on topic luaHole local topic = "luaHole" local message = devices.system["output" .. 1 .. "_state"] devices.system.MqttPublish{topic=topic,payload=string.format(message)}
Requirements
Netio FirmWare 3.3.1+