WIFI_MODE_APSTA example with esp-idf
MIT License
WIFI_MODE_APSTA example with esp-idf.
esp-idf contains examples in station mode (WIFI_MODE_STA) and softap mode (WIFI_MODE_AP), but there are no examples in apsta mode (WIFI_MODE_APSTA).
I referred here.
The ESP32/ESP32S3/ESP32C2/ESP32C3/ESP32C6 chip has the following four MAC addresses:
The ESP32-S2 chip has the following three MAC addresses:
Since there are separate STA mode MACs and AP mode MACs, APSTA mode works as both AP and STATION.
ESP-IDF V4.4/V5.x. ESP-IDF V5.0 is required when using ESP32-C2. ESP-IDF V5.1 is required when using ESP32-C6.
git clone https://github.com/nopnop2002/esp-idf-wifi-apsta
cd esp-idf-wifi-apsta
idf.py set-target {esp32/esp32s2/esp32s3/esp32c2/esp32c3/esp32c6}
idf.py menuconfig
idf.py flash monitor