Skip to content

jumbokh/micropython_class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micropython class

講義

設定/IDE

Micropython 韌體

安裝軟體

Lab:

%sendtofile boot.py
import network
import ubinascii
import time
sta = network.WLAN(network.STA_IF)
sta.active(True)

SSID='your-ssid'
KEY='your-key'
print(sta.active())
sta.connect(SSID,KEY)

mac = ubinascii.hexlify(sta.config('mac'),':').decode()
print(mac)
for i in range(20):
    time.sleep(0.5)
    if sta.isconnected():
        break
print(sta.ifconfig())
print('ESP32 Started.')

Starting

參考

About

AIOT ESP32 Micropython Class

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published