import network ap = network.WLAN(network.AP_IF) ap.active(False) ap.config(essid='light', password='1234567890') ap.active(True) print(ap.ifconfig())