Commencé maintenant à gérer la mise en sleep et le réveil du NodeMCU

This commit is contained in:
Christian Zufferey
2020-07-22 15:47:32 +02:00
parent d9d92f34ba
commit 3e676db63d
6 changed files with 128 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
-- le script repair.lua pendant xx secondes avant de continuer
--Source: https://nodemcu.readthedocs.io/en/master/en/modules/node/#nodebootreason
print("\n init.lua zf200722.1142 \n")
print("\n init.lua zf200722.1526 \n")
verbose = true
@@ -63,7 +63,7 @@ function initz()
print("external reset")
if rtcmem.read32(10) == 43690 then
print("dsleep wake up")
f = "0_dsleep.lua" if file.exists(f) then dofile(f) end
f = "0_dsleep2.lua" if file.exists(f) then dofile(f) end
else
second_chance()
end