27.05.2024, 09:41
After mclient = require('mosquitto').new() (line 45) add this:
Replace USERNAME/PASSWORD with real username and password.
Code:
mclient:login_set('USERNAME', 'PASSWORD')
Replace USERNAME/PASSWORD with real username and password.