Replies: 1 comment
-
Update to the pico problem above.
This happened again so I added a loop limit to the disconnect and deactivate tests in the do_disconnect function. Both loops reached their limit. Also, every scan I tried after returned an empty list. This was only resolved by powering off the device. Still don't know if this problem is limited to the pico device. Curt |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After using a station connection script that kind of worked, I decided to clean it up to be more reliable. I wanted the script to always disconnect and automatically connect to "known" access point with an optional ifconfig parameter. My testing yielded a number of observations. The complete script is at the end of the post. Comments on improvements are most welcome. Curt
The 2 devices used for testing (Thonny):
Both devices produced similar results
Disconnecting
I had one problem with the pico. After the device was connected and sat idle for a few hours, it did not return False to wlan.isconnected(). The device did not respond to a ping. This only occurred once. For this reason a retry count was added.
Scanning
Connecting
Full Code
Beta Was this translation helpful? Give feedback.
All reactions