Skip to content

Instantly share code, notes, and snippets.

View azureru's full-sized avatar
🌎
.....................................

Erwin Maulana Saputra azureru

🌎
.....................................
View GitHub Profile
@marcelstoer
marcelstoer / wifi-watch.lua
Last active October 24, 2016 21:50
Keep NodeMCU connected to WiFi
-- 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()