Refactorisé l'api hub pour la concetration des températures (ne fonctionne pas encore)

This commit is contained in:
Christian Zufferey
2019-07-27 09:38:03 +02:00
parent 93e84bd64f
commit c2f5efce9c
5 changed files with 92 additions and 8 deletions

View File

@@ -1,19 +1,18 @@
-- Scripts à charger après le boot pour démarrer son appli
print("\n boot.lua zf190726.1913 \n")
print("\n boot.lua zf190727.0902 \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
--ses propres secrets
-- charge ses propres secrets
f= "secrets_temp_zf_int_1er.lua" if file.exists(f) then dofile(f) end
f= "secrets_temp_zf_out_nord.lua" if file.exists(f) then dofile(f) end
f= "secrets_temp_zf_out_sud.lua" if file.exists(f) then dofile(f) end