Encore une fois, complètement refactorisé ma structure de mesure de puissance et de température afin de pouvoir être le plus générique possible ;-)

This commit is contained in:
Christian Zufferey
2019-09-22 17:25:06 +02:00
parent b9816641b8
commit 05950befe6
185 changed files with 10 additions and 7 deletions

View File

@@ -0,0 +1,34 @@
-- Scripts à charger après le boot pour démarrer son appli
print("\n boot.lua zf190601.1615 \n")
function heartbeat()
f= "flash_led_xfois.lua" if file.exists(f) then dofile(f) end
flash_led_xfois()
boottimer1=tmr.create()
-- tmr.alarm(boottimer1, 1*1000, tmr.ALARM_AUTO, function()
boottimer1:alarm(1*1000, tmr.ALARM_AUTO, function()
xfois =2
blink_LED ()
end)
end
--f= "led_rgb.lua" if file.exists(f) then dofile(f) end
--f= "wifi_ap_start.lua" if file.exists(f) then dofile(f) 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_srv2.lua" if file.exists(f) then dofile(f) end
f= "web_ide2.lua" if file.exists(f) then dofile(f) end
f= "web_srv2.lua" if file.exists(f) then dofile(f) end
--f= "set_time.lua" if file.exists(f) then dofile(f) end
--f= "dsleep.lua" if file.exists(f) then dofile(f) end
--f= "a_no_linear.lua" if file.exists(f) then dofile(f) end
f=nil
--heartbeat=nil
heartbeat()