CrowPanel ESP32 HMI 5.0" WiFi problem

Hello.
I am unable to connect the display to any secure network. Regardless of the type of protection WPA, WPA2 ...
If the network is free and without a password, the ESP32 connects and works.
The code I'm testing, searches for and displays the found networks on the display. But after not being able to connect to any secure network, I decided to test the simplest code:

`#include <WiFi.h>
const char* ssid = "myNet";
const char* password = "myPass";

void setup(){
Serial.begin(115200);
delay(1000);
Serial.print("Connecting to ");
Serial.println(ssid);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
while(WiFi.status() != WL_CONNECTED){
Serial.print(".");
delay(500);
}
Serial.println("\nConnected to the WiFi network");
Serial.print("Local ESP32 IP: ");
Serial.println(WiFi.localIP());
}
void loop(){}`

Failed to connect again.

I will be glad if someone can help me.

Comments

  • Problem solved.
    I added
    WiFi.setMinSecurity(WIFI_AUTH_WEP);

    Still, it should work without this setting, but I haven't found why it doesn't.

Sign In or Register to comment.