Question about WiFi.begin
Posted: Tue Sep 05, 2017 7:41 pm
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");
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");