some fixes
This commit is contained in:
commit
a4a61c8329
13
init.lua
13
init.lua
@ -1,13 +1,16 @@
|
|||||||
-- Tel--l the chip to connect to the access point
|
|
||||||
--wifi.setmode(wifi.STATIONAP)
|
|
||||||
wifi.setmode(wifi.STATION)
|
wifi.setmode(wifi.STATION)
|
||||||
print('set (mode='..wifi.getmode()..')')
|
print('set (mode='..wifi.getmode()..')')
|
||||||
print('MAC: ',wifi.sta.getmac())
|
print('MAC: ',wifi.sta.getmac())
|
||||||
print('chip: ',node.chipid())
|
print('chip: ',node.chipid())
|
||||||
print('heap: ',node.heap())
|
print('heap: ',node.heap())
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
wifi.sta.config("BT_WiFi", "PlacNinObOj9")
|
wifi.sta.config("BT_WiFi", "PlacNinObOj9")
|
||||||
|
|
||||||
|
=======
|
||||||
|
|
||||||
|
|
||||||
|
>>>>>>> 11d1f96351cea860acc3dc025d0ea72aa7e9c7ee
|
||||||
cfg={}
|
cfg={}
|
||||||
cfg.ssid="ESP-"..node.chipid()
|
cfg.ssid="ESP-"..node.chipid()
|
||||||
cfg.pwd="ESP-"..node.chipid()
|
cfg.pwd="ESP-"..node.chipid()
|
||||||
@ -33,9 +36,15 @@ serverFiles = nil
|
|||||||
|
|
||||||
-- Connect to the WiFi access point. Once the device is connected,
|
-- Connect to the WiFi access point. Once the device is connected,
|
||||||
-- you may start the HTTP server.
|
-- you may start the HTTP server.
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
local joincounter = 0
|
local joincounter = 0
|
||||||
|
|
||||||
|
=======
|
||||||
|
|
||||||
|
local joincounter = 0
|
||||||
|
|
||||||
|
>>>>>>> 11d1f96351cea860acc3dc025d0ea72aa7e9c7ee
|
||||||
tmr.alarm(0, 3000, 1, function()
|
tmr.alarm(0, 3000, 1, function()
|
||||||
|
|
||||||
if wifi.sta.getip() == nil and joincounter < 5 then
|
if wifi.sta.getip() == nil and joincounter < 5 then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user