Commencé le projet de reflashage d'un SonOff en Lua afin de pouvoir le programmer à distance sans devoir le brancher sur le port série
This commit is contained in:
11
SonOff/SonOff_2/boot.lua
Normal file
11
SonOff/SonOff_2/boot.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
-- Scripts à charger après le boot pour démarrer le core system
|
||||
|
||||
print("\n boot.lua zf191221.1509 \n")
|
||||
|
||||
function boot()
|
||||
gpio.trig(zswitch, "none") hvbouton=nil zswitch=nil reset_reason=nil
|
||||
|
||||
f= "telnet_srv2.lua" if file.exists(f) then dofile(f) end
|
||||
f= "wifi_init.lua" if file.exists(f) then dofile(f) end
|
||||
end
|
||||
boot()
|
||||
Reference in New Issue
Block a user