- totalement remanié la structure de mon dépôt, cela commençait à être trop le foutoire ;-(

This commit is contained in:
Christian Zufferey
2018-11-18 10:36:16 +01:00
parent 3bfc2949d2
commit b2b632a6cd
61 changed files with 56 additions and 1214 deletions

20
Net_utils/make_ping.lua Normal file
View File

@@ -0,0 +1,20 @@
-- programme pour faire des ping en permanence
print("\n make_ping.lua zf181113.1947 \n")
zLED=0
gpio.mode(zLED, gpio.OUTPUT)
ztmr_LED = tmr.create()
value = true
dofile("ping.lua")
tmr.alarm(ztmr_LED, 500, tmr.ALARM_AUTO, function ()
if value then
gpio.write(zLED, gpio.HIGH)
else
gpio.write(zLED, gpio.LOW)
Ping("192.168.0.102")
end
value = not value
end)