Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def connectupwifi():
- print('starting to connect to WiFi')
- pycom.rgbled(0x800080)
- wlan = WLAN(mode=WLAN.STA)
- nets = wlan.scan()
- for net in nets:
- if net.ssid == 'Verizon-MiFi7730L-B9B9':
- print('Network found!')
- wlan.connect(net.ssid, auth=(net.sec, 'Pass'), timeout=5000)
- while not wlan.isconnected():
- time.sleep(1)
- print('WLAN connection succeeded!')
- pass
- pycom.rgbled(0x007f00)
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement