johnnyhenderson
Warrior
Inscrit le : 28-08-2017
Nb de messages : 109
profil
|
Nonblocking way to detect internet connectivity? (13-09-17 @ 15:43:15)
Otherwise, there's no way to test "Internet connectivity", as "Internet" is not a specific, "countable", term. However, you can invent any number of heuristics for that. For example, if I faced such an issue, I'd likely either try to open a connection to a specific site of the interest, or if really targetting "Internet", then would send a UDP datagram to some well-known server on the net and see if I get a reply. Google's DNS servers like 8.8.8.8 seem just right for that, and may be first step towards implementing the aforementioned async DNS resolver.
Please Help.
Thanks !
I didn't find the right solution from the internet.
References:
-https://forum.micropython.org/viewtopic.php?f=2&t=3689
- Sales Video Examples
|