I would bring the var mqtt= line, into the server>setTimeout callback, so that mqtt.create() happens in E.on("init", ...) too? Does that help?
var mqtt=
mqtt.create()
E.on("init", ...)
@Ollie started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I would bring the
var mqtt=
line, into the server>setTimeout callback, so thatmqtt.create()
happens inE.on("init", ...)
too? Does that help?