04.02.2020, 12:40
No event script is needed. Value is published to selected topic when value changes. Have you checked that MQTT client is connected? Does the reverse (mqtt_to_object) work? Does the client have access to the select topic?
You can log the publish result like this (line 83):
You can log the publish result like this (line 83):
Code:
local r, e, c = mclient:publish(topic, tostring(value))
log('publish', r, e, c)