Created
February 22, 2026 20:08
-
-
Save lynt-smitka/71bf79b23b68699ff2134eea7798350c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Connect to WiFi | |
| try: | |
| wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD'), timeout=10) | |
| except: | |
| wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID2'), os.getenv('CIRCUITPY_WIFI_PASSWORD2'), timeout=10) | |
| print("Connected:", wifi.radio.ap_info.ssid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment