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");