LUA command to publish MQTT message
Posted: Tuesday 20 November 2018 13:59
Hello all,
I want to connect from domoticz to my node-red instance on the same RPI to control some MQTT systems.
I need to do this preferably from a LUA script. Does anyone have a good simple example of how to publish an mqtt message?
I understand from partial hints and wikis that it should be done with
CommandArray['OpenURL']= and then a JSON line. But I have not been able to find a working example to start experimenting from.
Any help is appreciated.
Bert
I want to connect from domoticz to my node-red instance on the same RPI to control some MQTT systems.
I need to do this preferably from a LUA script. Does anyone have a good simple example of how to publish an mqtt message?
I understand from partial hints and wikis that it should be done with
CommandArray['OpenURL']= and then a JSON line. But I have not been able to find a working example to start experimenting from.
Any help is appreciated.
Bert