Skip to content

Commit

Permalink
fix: demo/socket/udpsrv错误设置了wifi的mac地址
Browse files Browse the repository at this point in the history
  • Loading branch information
wendal committed Apr 30, 2024
1 parent 0b7cd50 commit 5afe5e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion demo/socket/udp_server/main.lua
Expand Up @@ -27,7 +27,7 @@ sys.taskInit(function()
-- TODO 改成自动配网
-- LED = gpio.setup(12, 0, gpio.PULLUP)
wlan.init()
wlan.setMac(0, string.fromHex("6055F9779010"))
-- wlan.setMac(0, string.fromHex("6055F9779010"))
wlan.setMode(wlan.STATION) -- 默认也是这个模式,不调用也可以
device_id = wlan.getMac()
wlan.connect(ssid, password, 1)
Expand Down

0 comments on commit 5afe5e8

Please sign in to comment.