pico-w-clock/access_point.py
2023-01-31 14:34:52 +02:00

15 lines
386 B
Python

import network #importing network
import gc
gc.collect()
ssid = 'PicoClock' #Set access point name
password = 'ayalaido' #Set your access point password
ap = network.WLAN(network.AP_IF)
ap.config(essid=ssid, password=password, hostname="pico.clock")
ap.active(True) #activating
print('AccessPoint Up And Running!')
print(ap.ifconfig())