diff --git a/WIFI_sniffer/cret_project/b.lua b/WIFI_sniffer/cret_project/b.lua index 04fd46a..8457097 100644 --- a/WIFI_sniffer/cret_project/b.lua +++ b/WIFI_sniffer/cret_project/b.lua @@ -1,7 +1,7 @@ -- Scripts pour tester le sniffer de smartphone qui essaient de se connecter sur des AP WIFI -- source: https://nodemcu.readthedocs.io/en/dev/modules/wifi/#wifieventmonregister -print("\n b.lua zf191029.1944 \n") +print("\n b.lua zf191029.2204 \n") --f= "set_time.lua" if file.exists(f) then dofile(f) end @@ -102,8 +102,8 @@ end --zadrs, zname, zrssi, ztime0, ztime1 function zsniff(T) - print("toto1950: "..T.RSSI) - if T.RSSI > -100 then +-- print("toto1950: "..T.RSSI) + if T.RSSI > -60 then print("\n\tMAC: ".. T.MAC.."\n\tRSSI: "..T.RSSI) -- ztime() z_adrs_mac_index=find_adrs(T.MAC) diff --git a/WIFI_sniffer/cret_project/boot.lua b/WIFI_sniffer/cret_project/boot.lua index 910f0ef..0bccab9 100644 --- a/WIFI_sniffer/cret_project/boot.lua +++ b/WIFI_sniffer/cret_project/boot.lua @@ -1,9 +1,10 @@ -- Scripts à charger après le boot pour démarrer le core system -print("\n boot.lua zf191029.2114 \n") +print("\n boot.lua zf191029.2257 \n") --f= "led_rgb.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 --ff= "web_srv2.lua" if file.exists(f) then dofile(f) end + diff --git a/WIFI_sniffer/cret_project/boot2.lua b/WIFI_sniffer/cret_project/boot2.lua index e915158..9441109 100644 --- a/WIFI_sniffer/cret_project/boot2.lua +++ b/WIFI_sniffer/cret_project/boot2.lua @@ -1,6 +1,6 @@ -- Scripts à charger après le boot pour démarrer son projet -print("\n boot2.lua zf191029.2154 \n") +print("\n boot2.lua zf191029.2259 \n") second_chance=nil @@ -15,16 +15,15 @@ function heartbeat() end) end --- charge ses propres secrets f= "secrets_project.lua" if file.exists(f) then dofile(f) end - f= "set_time.lua" if file.exists(f) then dofile(f) end - +collectgarbage() +f= "b.lua" if file.exists(f) then dofile(f) end f=nil -tmr.create():alarm(4*1000, tmr.ALARM_SINGLE, function() +tmr.create():alarm(3*1000, tmr.ALARM_SINGLE, function() flash_led_xfois=nil blink_LED=nil ztmr_Flash_LED=nil zTm_Off_LED=nil zTm_On_LED=nil nbfois=nil xfois=nil zLED=nil end) @@ -32,9 +31,8 @@ end) heartbeat=nil --heartbeat() + --[[ for k,v in pairs(_G) do print(k,v) end - - ]]