So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Grimdar
#65813 Hello, not much of a coder. I have an Esp8266 Wi-Fi board set up to trigger ifttt alerts when a door sensor has been triggered. It successfully connects to Wi-Fi and sends alerts.
Here's the tutorial where I learned from: http://www.simpleiothings.com/10-diy-door-sensor/

The problem is, if for whatever reason the Wi-Fi drops, it does not automatically reconnect unless I reset the power to the board.

Any way to solve this? I use LuaLoader to upload the lua files to the board.

Thanks in advance for any help.
User avatar
By alex_g
#65947 Indeed, what the poster above said.

Easiest way is probably to monitor for "Station Connected" or "Station Disconnected" and either reconnect (or reset, if a reset will reconnect) as appropriate.