Refactorisé le dossier pet_tracker_2
This commit is contained in:
@@ -3,11 +3,10 @@
|
||||
|
||||
-- ATTENTION: il faut connecter la pin 0 à la pin RESET avec une résistance de 1k !
|
||||
|
||||
print("\n dsleep.lua zf200724.1803 \n")
|
||||
print("\n dsleep.lua zf200725.1053 \n")
|
||||
|
||||
zLED=4
|
||||
f= "flash_led_xfois.lua" if file.exists(f) then dofile(f) end
|
||||
f= "secrets_project.lua" if file.exists(f) then dofile(f) end
|
||||
|
||||
function ztime()
|
||||
tm = rtctime.epoch2cal(rtctime.get()+2*3600)
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
-- Scripts pour tester l'écoute des AP WIFI
|
||||
|
||||
print("\n wifi_scan.lua zf200724.1827 \n")
|
||||
print("\n wifi_scan.lua zf200725.1053 \n")
|
||||
|
||||
f= "secrets_project.lua" if file.exists(f) then dofile(f) end
|
||||
|
||||
-- https://www.epochconverter.com/
|
||||
ztime2020 = 1577836800 -- Unix time pour 1.1.2020 0:0:0 GMT
|
||||
|
||||
@@ -11,94 +11,6 @@ print("le flag est à "..rtcmem.read32(10))
|
||||
f= "wifi_info.lua" if file.exists(f) then dofile(f) end
|
||||
|
||||
|
||||
wifi.setmode(wifi.STATION)
|
||||
a()
|
||||
wifi.setmode(wifi.NULLMODE,true)
|
||||
|
||||
function ztime()
|
||||
tm = rtctime.epoch2cal(rtctime.get()+2*3600)
|
||||
print(string.format("%04d/%02d/%02d %02d:%02d:%02d", tm["year"], tm["mon"], tm["day"], tm["hour"], tm["min"], tm["sec"]))
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
srv_rt:on("connection", nil)
|
||||
|
||||
|
||||
|
||||
|
||||
=node.heap()
|
||||
rt_connect()
|
||||
|
||||
fifo1, fifo1l, fifo2, fifo2l = nil, nil, nil, nil
|
||||
rec = nil
|
||||
k = nil
|
||||
l = nil
|
||||
s = nil
|
||||
chunk = nil
|
||||
socket = nil
|
||||
flushGarbage = nil
|
||||
sendLine = nil
|
||||
queueLine = nil
|
||||
receiveLine = nil
|
||||
zconnection = nil
|
||||
disconnect = nil
|
||||
telnet_listener=nil
|
||||
srv_rt=nil
|
||||
=node.heap()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
=node.heap()
|
||||
dofile("0_rtelnet1.lua")
|
||||
=node.heap()
|
||||
telnet_listener=nil
|
||||
=node.heap()
|
||||
srv_rt=nil
|
||||
=node.heap()
|
||||
|
||||
|
||||
|
||||
for k,v in ipairs(debug.getregistry()) do print(k,v) end
|
||||
|
||||
|
||||
|
||||
node.stripdebug(3)
|
||||
node.compile('0_tst4_socat.lua')
|
||||
|
||||
print(srv_rt)
|
||||
print(srv_rt:getpeer())
|
||||
srv_rt:close()
|
||||
|
||||
print(socket)
|
||||
print(socket:getpeer())
|
||||
socket:close()
|
||||
|
||||
verbose=true
|
||||
node.output(nil)
|
||||
|
||||
http_post(influxdb_url,"energy,value=test1_"..yellow_id.." val=1") print("toto",node.heap(),#t_zurl)
|
||||
|
||||
|
||||
=srv_rt:getaddr()
|
||||
tmr_socat1:unregister()
|
||||
for k,v in pairs(_G) do print(k,v) end
|
||||
|
||||
total_allocated, estimated_used = node.egc.meminfo()
|
||||
print(total_allocated, estimated_used)
|
||||
|
||||
print(console_port)
|
||||
|
||||
srv_rt = nil collectgarbage()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user