Ajouté le projet Timetable à Alexandre et des scripts pour gérer le bouton

This commit is contained in:
Christian Zufferey
2019-02-28 12:28:26 +01:00
parent 0e6c684007
commit ecfe06aafa
18 changed files with 627 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
-- Démarre le WIFI en mode AP
print("\n wifi_ap_start.lua zf190227.1727 \n")
local zmodewifi=wifi.getmode()
if zmodewifi == wifi.NULLMODE then
print("WIFI mode AP only")
wifi.setmode(wifi.SOFTAP)
elseif zmodewifi == wifi.STATION then
print("WIFI mode AP+CLI")
wifi.setmode(wifi.STATIONAP)
end
wifi.ap.config({ ssid = "NodeMCU jLEB "..wifi.ap.getmac(), pwd = "12345678" })
f= "wifi_info.lua" if file.exists(f) then dofile(f) end