- complètement remanié les scripts pour le WIFI, mais ce n'est pas encore terminé

This commit is contained in:
Christian Zufferey
2018-08-22 14:57:27 +02:00
parent e43b6f7540
commit 03686ac105
49 changed files with 207 additions and 21 deletions

26
Wifi/wifi_cli_stop.lua Normal file
View File

@@ -0,0 +1,26 @@
-- Démarre le WIFI en mode AP
print("\wifi_ap_stop.lua zf180822.1425 \n")
local zmodewifi=wifi.getmode()
if zmodewifi == wifi.STATIONAP then
wifi.setmode(wifi.NULLMODE)
elseif zmodewifi == wifi.SOFTAP then
wifi.setmode(wifi.STATION)
end
print("WIFI AP arrêté")
--[[
wifi.setmode(wifi.NULLMODE)
print(wifi.ap.getconfig())
print(wifi.ap.getmac())
print(wifi.getdefaultmode())
print(wifi.getmode())
print(wifi.NULLMODE, wifi.STATION, wifi.SOFTAP, wifi.STATIONAP)
print(wifi.getphymode())
print(wifi.PHYMODE_B, wifi.PHYMODE_G, wifi.PHYMODE_N)
]]