You cannot interrupt and enter instructions in putty, it will continuously repeat the content on the picture
This is my wifi connection
Code: Select all
import network
def connectAP(ssid, pwd):
wlan = network.WLAN(network.STA_IF)
if not wlan.isconnected():
wlan.active(True)
wlan.connect(ssid, pwd)
while not wlan.isconnected():
pass
print('network config:', wlan.ifconfig())