I use this standard sketch to connect to Internet:
Code: Select all
#include <WiFi.h>
char* ssid = "xxxxxxxxxx";
char* password = "xxxxxxxx";
void setup() {
Serial.begin(115200);
delay(10);
Serial.print("Connecting to "); Serial.println(ssid);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(WiFi.status());
}
Serial.print("\nWiFi connected IP: "); Serial.println(WiFi.localIP());
}
void loop() {}
ESP32 only connects exactly half the case:
- connect OK
- reboot
- connection failed
- reboot
- connect OK
- reboot
- connection failed
- reboot ...
I am the only one to get this "undocumented feature" ?
Please load this short code and let me know
Thanks