Nevermind about that error. I moved the code into the onInit() function and only received one "PING" inside of the console. After the third mqtt message I get:
MQTT disconnected... reconnecting.
MQTT connected
I typed mqtt.ping() into the console and received "PING". I manually executed mqtt.ping() a few times and I haven't received those errors as of yet. So, I'm wondering if the PICO isn't pinging mosquito. To test that, I didn't manually ping the broker and after three messages I get:
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.
Nevermind about that error. I moved the code into the onInit() function and only received one "PING" inside of the console. After the third mqtt message I get:
MQTT disconnected... reconnecting.
MQTT connected
I typed
mqtt.ping()
into the console and received "PING". I manually executedmqtt.ping()
a few times and I haven't received those errors as of yet. So, I'm wondering if the PICO isn't pinging mosquito. To test that, I didn't manually ping the broker and after three messages I get:MQTT disconnected... reconnecting.
MQTT connected