Code: Select all
# Client/Station Mode...
theInterface=network.WLAN(network.STA_IF)
if theInterface is None:
#
raise Exception('No Network?')
# Over kill?
theInterface.active(True)
theNetworks=theInterface.scan()
theInterface.disconnect()
theInterface.active(False)