Stop the advertising an AP after connecting to it
Posted: Fri May 31, 2024 7:26 am
I'd like to know if it is possible to stop the advertising of one AP right after one device connected to it and re-activate it right after that device disconnects from it.
I tried calling esp_wifi_get_config(ESP_IF_WIFI_AP, &config), setting config.ap.ssid_hidden = 1 and then calling esp_wifi_set_config(WIFI_IF_AP, &config) but for some reason it triggers the event WIFI_EVENT_AP_DISCONNECTED.
I tried calling esp_wifi_get_config(ESP_IF_WIFI_AP, &config), setting config.ap.ssid_hidden = 1 and then calling esp_wifi_set_config(WIFI_IF_AP, &config) but for some reason it triggers the event WIFI_EVENT_AP_DISCONNECTED.