How often is needed to check Wi-fi status ?
Posted: Wed Sep 13, 2017 2:41 am
Hey there,
I recently finished a project for a client consisting of up to 10 equipment performing local monitoring through ESP8266, each one operating its lightweight web server.
So far after the first week of field installation I had no reports of any module that stopped working Wifi connection.
However, considering that this project was based on a simple Arduino demo example of webserver, I realized that connection status check is made only once, at setup() routine:
I was thinking about to add it at Loop() aswell, however I don't know the overhead CPU processing of this, I'm not aware of its estructure in library, I mean, whether it just do a bare check of a flag, or if it really do something else such as inline executing a method within its structure, therefore I believe the interval of checks should lie in the range of minutes, but I'm not sure.
Does anybody have any insight on that ?
Thanks in advance,
Andre.
I recently finished a project for a client consisting of up to 10 equipment performing local monitoring through ESP8266, each one operating its lightweight web server.
So far after the first week of field installation I had no reports of any module that stopped working Wifi connection.
However, considering that this project was based on a simple Arduino demo example of webserver, I realized that connection status check is made only once, at setup() routine:
Code: Select all
while (WiFi.status() != WL_CONNECTED) {
I was thinking about to add it at Loop() aswell, however I don't know the overhead CPU processing of this, I'm not aware of its estructure in library, I mean, whether it just do a bare check of a flag, or if it really do something else such as inline executing a method within its structure, therefore I believe the interval of checks should lie in the range of minutes, but I'm not sure.
Does anybody have any insight on that ?
Thanks in advance,
Andre.