Commencé à travailler sur les tests deep sleep avec le NodeMCU ESP-M3

This commit is contained in:
Christian Zufferey
2018-12-08 18:28:13 +01:00
parent 8455390247
commit 8eaa3579c2
28 changed files with 703 additions and 0 deletions

25
DeepSleep/ESP-M3/boot.lua Normal file
View File

@@ -0,0 +1,25 @@
-- Scripts à charger après le boot pour démarrer son appli
print("\n boot.lua zf181208.1752 \n")
function heartbeat()
f= "flash_led_xfois.lua" if file.exists(f) then dofile(f) end
boottimer1=tmr.create()
tmr.alarm(boottimer1, 1*1000, tmr.ALARM_AUTO, function()
xfois =2
blink_LED ()
end)
end
f= "wifi_ap_stop.lua" if file.exists(f) then dofile(f) end
f= "wifi_cli_conf.lua" if file.exists(f) then dofile(f) end
f= "wifi_cli_start.lua" if file.exists(f) then dofile(f) end
--f= "telnet_srv.lua" if file.exists(f) then dofile(f) end
f= "web_ide2.lua" if file.exists(f) then dofile(f) end
f= "dsleep.lua" if file.exists(f) then dofile(f) end
--heartbeat()