Hello,
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?
Wifi connected but no data flow recognition
- pythoncoder
- Posts: 5956
- Joined: Fri Jul 18, 2014 8:01 am
- Location: UK
- Contact:
Re: Wifi connected but no data flow recognition
Peter Hinch
Index to my micropython libraries.
Index to my micropython libraries.