As the title says... Chat on...

User avatar
By marcelstoer
#14111 I filed a bug against NodeMCU because I cannot connect to CloudMQTT but I'm not 100% it's really a bug. However, I don't see what I could be doing wrong.

Code: Select allm = mqtt.Client("nca", 120, "my-CloudMQTT-username", "my-CloudMQTT-password")
m:on("connect", function(con) print ("connected") end)
m:on("offline", function(con) print ("offline") end)
m:connect("54.75.180.40", my-CloudMQTT-port, 0)
m:publish("/my-CloudMQTT-instance","hello",0,0, function(conn) print("published") end)


After the connection attempt I immediately get the offline callback.
User avatar
By marcelstoer
#14169 Turns out the WiFi access point didn't allow ports required by broker. Still irritating that the NodeMCU firmeware doesn't report any connection errors.