15 lines
386 B
Python
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())
|
|
|