Stop the advertising an AP after connecting to it

crespan
Posts: 3
Joined: Wed May 08, 2024 1:42 pm

Stop the advertising an AP after connecting to it

Postby crespan » 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.

Who is online

Users browsing this forum: Google [Bot] and 96 guests