-->
Page 1 of 1

Question about WiFi.begin

PostPosted: Tue Sep 05, 2017 7:41 pm
by Fatfenders
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");

Re: Question about WiFi.begin

PostPosted: Fri Sep 22, 2017 2:17 pm
by Fatfenders
Thanks for that. I am new to most of this and your reply was very helpful.