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

User avatar
By Fatfenders
#69765 When I place my "WiFi.begin" in "setup" it works just fine.
When I move it to "loop" it never connects.
I am trying to put together a project that will alert me if a hot water heater starts leaking. It could be years before it would send me a text so I don't want to connect until water is detected.

#include <ESP8266WiFi.h>
.
.
.
void setup()
.
.
.
void loop()
.
.
.
WiFi.begin("ssid","password");