struct softap_config config;
char password[64];
wifi_softap_get_config(&config);
memset(config.password, 0, sizeof(config.password));
sprintf(password, "%s", "testSifresi123");
memcpy(config.password, password, strlen(password));
config.authmode = AUTH_WPA_WPA2_PSK;
wifi_softap_set_config(&config);
or
char temp[64];
int8_t len,passLen;
struct softap_config *apConfig = (struct softap_config *)zalloc(sizeof(struct softap_config));
wifi_softap_get_config(apConfig);
sprintf(apConfig->ssid, "espTestWifi");
len = sprintf(apConfig->ssid, "espTestWifi");
apConfig->ssid_len = len;
passLen = sprintf(apConfig->password, "testSifresi1", 64);
apConfig->channel =11;
apConfig->authmode=3;
wifi_softap_set_config(apConfig);
any help is welcome
Lets get the party started and +1
[url=https://www.banggood.com/custlink/KvGGhGF4wG[/url]
I like ESP8266 and ESP8285 and ESP32