Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

scan wifi networke micropython

nets = wlan.scan()
for net in nets:
    if net.ssid == 'mywifi':
        print('Network found!')
        wlan.connect(net.ssid, auth=(net.sec, 'mywifikey'), timeout=5000)
        while not wlan.isconnected():
            machine.idle() # save power while waiting
        print('WLAN connection succeeded!')
        break
Source by docs.micropython.org #
 
PREVIOUS NEXT
Tagged: #scan #wifi #networke #micropython
ADD COMMENT
Topic
Name
6+6 =