Search found 2 matches
- Fri Jan 31, 2020 2:22 pm
- Forum: General Discussion and Questions
- Topic: Properly checking for errors during a WiFi connection?
- Replies: 13
- Views: 41432
Re: Properly checking for errors during a WiFi connection?
They are in the network module, not in the global environment In the sample code I posted, the first line is import network , and I'm still seeing error messages telling me the constants are undefined. Looking at source, I don't see any place where, for example, STAT_NO_AP_FOUND is defined. Still d...
- Thu Jan 30, 2020 7:25 pm
- Forum: General Discussion and Questions
- Topic: Properly checking for errors during a WiFi connection?
- Replies: 13
- Views: 41432
Re: Properly checking for errors during a WiFi connection?
If the user wants to know why the initial wifi connection fails, he can check it himself. Well, yes, I do want to know why the initial connection fails. I tried checking like this: import network nic = network.WLAN(network.STA_IF) nic.active(True) nic.connect('my-ssid', 'my-password') s=nic.status(...