Hi,
Perhaps this is a simple problem but I tried to search Internet and this forum and couldn't find an answer.
I built a simple thermostat and it's controlled from Adafruit IO. It's working really well. The only problem is that, I noticed one time, the Internet router was turned off somehow (lost power) and the furnace was on all night. I am guessing that the router went off while the furnace was turned on, then the device (NodeMCU) was just looking for the connection and not doing anything else.
I am assuming that in the following code, the flow hangs at io.run(); and stops going anywhere until a connection is established again?
void loop(void){
io.run();
...
}
My questions are:
- Is my assumption correct? (that the code hung at io.run()?)
- If so, is there a way for the code to continue, while waiting for reconnect?
- Does the board usually reconnect when Internet comes back?