I've changed to my Router (alcatel hh72vm).
Now, all of my ESP32 can't connect to the router?
Raspberry pi, Phone and even two esp8266(!!!) can connect to the Router.
When I'm change the settings (SSID) to my mobile hotspot from the smartphone, the esp32 (tested with 3 ESP32) can connect to the hotspot - but not the router...
I changed 2,4 to 5 GHZ... changed the SSID and password, encryption, wifi channel.
Sketches loops through "conecting to ......", also static IP adress fails..
/*
Example from WiFi > WiFiScan
Complete details at https://RandomNerdTutorials.com/esp32-useful-wi-fi-functions-arduino/
*/
#include "WiFi.h"
void setup() {
Serial.begin(115200);
// Set WiFi to station mode and disconnect from an AP if it was previously connected
WiFi.mode(WIFI_STA);
WiFi.disconnect();
delay(100);
Serial.println("Setup done");
}
void loop() {
Serial.println("scan start");
// WiFi.scanNetworks will return the number of networks found
int n = WiFi.scanNetworks();
Serial.println("scan done");
if (n == 0) {
Serial.println("no networks found");
} else {
Serial.print(n);
Serial.println(" networks found");
for (int i = 0; i < n; ++i) {
// Print SSID and RSSI for each network found
Serial.print(i + 1);
Serial.print(": ");
Serial.print(WiFi.SSID(i));
Serial.print(" (");
Serial.print(WiFi.RSSI(i));
Serial.print(")");
Serial.println((WiFi.encryptionType(i) == WIFI_AUTH_OPEN)?" ":"*");
delay(10);
}
}
Serial.println("");
// Wait a bit before scanning again
delay(5000);
}
I was having the same issue, and the problem was my SSID (even though I hadn't changed it). The default SSID was "GL-X750-39c", and I had to change it to "GLX75039c". Now it is connecting just fine!