Chat freely about anything...

User avatar
By alonewolfx2
#2290 is ssid hiding possible? (Ap mode) many access points have this function. It can be perfect if it possible :)

Edit: it is possible. Here is working code.

Code: Select allvoid ICACHE_FLASH_ATTR
ap_settings(void *pvParameters)
{
   struct softap_config config;
   char password[33];
   char ssid[32];
   wifi_softap_get_config(&config);

   memset(config.ssid,0,sizeof(config.ssid));
   sprintf(ssid,"espTest123456",sizeof("espTest123456"));
   memcpy(config.ssid,ssid,strlen(ssid));
   config.ssid_len=strlen(ssid);
   memset(config.password,0,sizeof(config.password));
   sprintf(password,"1234567890a",sizeof("1234567890a"));
   memcpy(config.password,password,strlen(password));
   config.authmode=AUTH_WPA2_PSK;
   config.ssid_hidden=1;
   wifi_softap_set_config(&config);
}
User avatar
By minigun
#3783 Anyway I found the solution in ESP8266_IoT_SDK_Programming Guide_v0.9.1

Using the method below -->
void wifi_softap_set_config(struct softap_config *config);


And "softap_config" is defined as -->

struct softap_config {
uint8 ssid[32];
uint8 password[64];
uint8 channel;
uint8 authmode;
uint8 ssid_hidden;
uint8 max_connection;
};

"ssid_hidden" flag will do the job I think...
User avatar
By alonewolfx2
#3787 I will try asap thank you