Page 1 of 1

is it possible to connect ESP32 Chip with AP Mode and Station mode simultaneously using ESP-IDF

Posted: Fri Feb 04, 2022 6:39 am
by Kunjan
is it possible to connect ESP32 Chip with AP Mode and Station mode simultaneously using ESP-IDF? If yes then can you guide me how?

Re: is it possible to connect ESP32 Chip with AP Mode and Station mode simultaneously using ESP-IDF

Posted: Fri Feb 04, 2022 8:27 am
by hmojito
Hi Kunjan,
Yes it's possible, you just need to call :

Code: Select all

esp_wifi_set_mode(WIFI_MODE_APSTA)
In esp-idf/examples/wifi/getting_started you will find 2 examples, one for AP Mode and the other for STA Mode, you just need to add the configuration of AP mode in the station example and set the mode to WIFI_MODE_APSTA
Hope this will help