General area when it fits no where else

Moderator: Mmiscool

User avatar
By Joaquim Boavida
#60376 Hi, is there a simple way to check if the module is connected to the internet and not in AP mode?
Sometimes the module loses connection to the router and stays that way or enters in AP mode.
I want to check periodically if I have access to the internet or not... and If not reboot the module...

TIA
JB
User avatar
By ardhuru
#60447 How exactly is wifi.ssid() to be used? I suspect the solution to this thread lies in this command, but somehow I could never get it to work.

Is this supposed to return the name of the AP the ESP is actually connected to, or just the AP listed in the settings page, regardless of the connection status?

I could not get this command to work for either possibilities.