Reconnect after internet failure

hello,

some times internet router disconnected and after that arduino cannot connect automatically,and i have to reset i manually.

is there any function to check connection and reconnect again?

I dont know if there is a way to check the device status connection.

I use an instruction to stop thinger communication thinger.stop();

And of course you need to stop calling thinger.handle();

So when thinger.stop(); is called it stops thinger and even turn off wifi in the device (I mean nodemcu8266, its the device that I work with), when it is called thinger.handle(); again, turns on wifi and connects to thinger.

What I’ve done is stop thinger and reconnect again every 10 minutes and it worked ok, I’ve tested even turning off wifi router and when its online again, the device connects without issues.

Hope this helps.

1 Like