27.06.2022, 12:24
The same script works for me when sending messages from MQTT explorer. Do you have "Allow anonymous connection" enabled in MQTT broker configuration on LM? If not then you need to specify the login/password in the script.
Modify the script around line 45 by adding login_set call and restart it via disable/enable:
Modify the script around line 45 by adding login_set call and restart it via disable/enable:
Code:
mclient = require('mosquitto').new()
mclient:login_set('test', '123456')