Hi, when running the ConnectWithWPA example sketch it initially connects and runs fine, but within a few hours the WiFi connection is dropped and the status reported on the serial output changes to:
SSID:
BSSID: 00:00:00:00:00:00
signal strength (RSSI):0
Encryption Type:7
I have tried adding the setup commands to the main loop hoping it would restart WiFi, but no luck.
// attempt to connect to Wifi network(if connection is down)
while (status != WL_CONNECTED) {
Serial.print("Attempting to REconnect to WPA SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network:
status = WiFi.begin(ssid, pass);
// wait 10 seconds for connection:
delay(10000);
If anyone can suggest why the connection keeps dropping or post the code I should use to restart the WiFi if it has dropped, that would be very helpful.