Files
NodeMCU_Lua/WIFI_sniffer/cret_project/wifi_init.lua

20 lines
640 B
Lua

-- Petit script pour initaliser une fois la couche WIFI
function wifi_init()
print("\n wifi_init.lua zf191029.2133 \n")
-- charge les secrets pour lw wifi
f= "secrets_wifi.lua" if file.exists(f) then dofile(f) end
f= "wifi_ap_start.lua" if file.exists(f) then dofile(f) end
--f= "wifi_ap_stop.lua" if file.exists(f) then dofile(f) end
f= "wifi_cli_conf.lua" if file.exists(f) then dofile(f) end
f= "wifi_cli_start.lua" if file.exists(f) then dofile(f) end
--f= "wifi_cli_stop.lua" if file.exists(f) then dofile(f) end
end
wifi_init()
wifi_init=nil cli_ssid=nil cli_pwd=nil