Page 1 of 1

Wifi connected but no data flow recognition

Posted: Fri Aug 02, 2019 8:52 pm
by nikanta
I am using an ESP32 running latest version of micropython.
The idea is to have ESP32 boards transferring their sensor data to a mqtt server.
Firstly i am testing ways to achieve a good connection between the ESP32 and my local network.
What i am thinking of is using the isconnected() function to check at some certain points of my code that the connection is TRUE.
So if it is FALSE i will be calling a reconnect function until connection is good and then the code will continue at the same point.
So far when the wireless connection is lost the ESP32 tries to reconnect until it's done successfully.
BUT i noticed that there are times where i have a wifi connection but no data(let's say some error with my internet provider)
So at that moment the ESP32 board is connected to the network so it will continue with the rest code thinking that everything is working.
Is there any way i can check if the wifi connection also has data flow?

Re: Wifi connected but no data flow recognition

Posted: Sat Aug 03, 2019 6:33 am
by pythoncoder
See this doc for an explanation of the issues and this repo for a possible solution.