pico-w-clock/access_point.py

16 lines
386 B
Python
Raw Permalink Normal View History

2023-01-31 12:34:52 +00:00
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())