Comme il peut démarrer maintenant tout seul depuis un power off, il n'a plus moyen d'aller chercher la date sur Internet. Il faut donc régulièrement quand on est connecté sur Internet, sauver la date dans la flash afin qu'il puisse au moins partir d'une date pas trop fausse quand il démarre sans nternet
21 lines
322 B
Plaintext
21 lines
322 B
Plaintext
zf200814.1936
|
|
|
|
print(ztime())
|
|
dsleep_on()
|
|
|
|
f = "0_wifi_scan.lua" if file.exists(f) then dofile(f) end
|
|
wifi.setmode(wifi.STATION)
|
|
scan_wifi()
|
|
|
|
zcat_logs_ap_wifi()
|
|
|
|
print(node.bootreason())
|
|
print("le flag est à "..rtcmem.read32(10))
|
|
|
|
f= "wifi_info.lua" if file.exists(f) then dofile(f) end
|
|
|
|
|
|
|
|
|
|
|