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

Kunjan
Posts: 11
Joined: Tue May 25, 2021 4:41 pm

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

Postby Kunjan » Fri Feb 04, 2022 6:39 am

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?

hmojito
Posts: 9
Joined: Sat May 12, 2018 11:05 am

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

Postby hmojito » Fri Feb 04, 2022 8:27 am

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

Who is online

Users browsing this forum: Bing [Bot] and 75 guests