ESP32S2 WiFi access point with WPA3 authentication mode

brindha__kumar
Posts: 11
Joined: Wed Jun 07, 2023 6:16 am

ESP32S2 WiFi access point with WPA3 authentication mode

Postby brindha__kumar » Wed Jun 07, 2023 7:18 am

Good noon All!

I'm trying to set esp32s2 module as access point with WPA3 authentication. After configured with WPA3 and the SSID was not advertising. It works only with WPA2 configurations. Also tried WPA3 with STA mode it will work in WPA3 authentication.

Please help me to set up the WPA3 on AP mode
My code is:
#include <WiFi.h>
#include <WiFiAP.h>
#include <esp_wifi.h>

const char* ssid = "TESTNAME";
const char* password1 = "Abcd@123";


void setup() {
Serial.begin(115200);
// Configure Soft AP
wifi_config_t config;
wifi_softap_config(&config, ssid, password1,6,WIFI_AUTH_WPA3_PSK,0,4,false,100);
WiFi.mode(WIFI_AP);
WiFi.softAP(ssid, password1);
Serial.print("SSID: ");
Serial.println(ssid);
delay(100);
Serial.print("IP address: ");
Serial.println(String(WiFi.softAPIP().toString()));
}
void loop() {
}

Who is online

Users browsing this forum: No registered users and 50 guests