Switching from APSTA to AP and back again

barryB
Posts: 1
Joined: Wed Apr 07, 2021 1:52 pm

Switching from APSTA to AP and back again

Postby barryB » Wed Apr 07, 2021 1:59 pm

Hi All,
I have set up and access point & station with :

wifi_mode_t wifi_mode = WIFI_MODE_APSTA;
ESP_ERROR_CHECK(esp_wifi_set_mode(wifi_mode));

All works fine, but I have to be able to turn off WIFI_MODE_APSTA and go to WIFI_MODE_AP and then back to WIFI_MODE_APSTA.
What's the correct way to do this e.g. turn off/on STA without affecting AP mode.

Many thanks

Who is online

Users browsing this forum: Womboo and 43 guests