Router connection: 50% failure (50% success)

kaskas
Posts: 2
Joined: Fri Feb 24, 2017 10:49 am

Router connection: 50% failure (50% success)

Postby kaskas » Mon Feb 27, 2017 10:51 am

Hi,
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() {}
ESP8266 connects after each reboot
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

Who is online

Users browsing this forum: No registered users and 86 guests