import network wlan = network.WLAN(network.STA_IF) wlan.active(True) wlan.connect('MON_SSID', 'MON_PASSWD') print('network config:', wlan.ifconfig())