This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- If you have a recent firmware from the dev branch you could do away with that ugly timer | |
-- by relying on WiFi events and (re-)acting accordingly. See wifi.sta.eventMonReg() at | |
-- https://github.com/nodemcu/nodemcu-firmware/wiki/nodemcu_api_en#wifistaeventmonreg | |
-- init all globals | |
... | |
wifiReady = 0 | |
function configureWiFi() |