Hey
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 of connection using Static IP
by Evandro Luis Copercini
Public domain - 2017
*/
#include <WiFi.h>
const char* ssid = "mysssid";
const char* password = "mypassword";
// IPAddress local_IP(192, 168, 178, 15);
// IPAddress gateway(192, 168, 178, 1);
// IPAddress subnet(255, 255, 255, 0);
// IPAddress primaryDNS(8, 8, 8, 8); //optional
// IPAddress secondaryDNS(8, 8, 4, 4); //optional
void setup()
{
Serial.begin(115200);
Serial.print("Connecting to ");
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected!");
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
Serial.print("ESP Mac Address: ");
Serial.println(WiFi.macAddress());
Serial.print("Subnet Mask: ");
Serial.println(WiFi.subnetMask());
Serial.print("Gateway IP: ");
Serial.println(WiFi.gatewayIP());
Serial.print("DNS: ");
Serial.println(WiFi.dnsIP());
}
void loop()
{
}
any ideas?