https://github.com/nopnop2002/esp-idf-switch-access-points
Switching access points for esp-idf
https://github.com/nopnop2002/esp-idf-switch-access-points
esp-idf esp32 station-mode switching wifi
Last synced: 8 months ago
JSON representation
Switching access points for esp-idf
- Host: GitHub
- URL: https://github.com/nopnop2002/esp-idf-switch-access-points
- Owner: nopnop2002
- License: mit
- Created: 2020-12-09T12:51:53.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T11:49:17.000Z (over 3 years ago)
- Last Synced: 2025-10-08T12:03:04.234Z (8 months ago)
- Topics: esp-idf, esp32, station-mode, switching, wifi
- Language: C
- Homepage:
- Size: 6.84 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp-idf-switch-access-points
Switching access points for esp-idf.
Station mode of esp-idf cannot connect to multiple access points at the same time.
However, it is possible to switch access points sequentially:
AP1->AP2->AP1->AP2
This is example code that switches access points sequentially.

# Software requirements
esp-idf ver4.1 or later.
# Install
```
git clone https://github.com/nopnop2002/esp-idf-switch-access-points
cd esp-idf-switch-access-points
idf.py menuconfig
idf.py flash monitor
```
# Firmware configuration
You have to set this config value using menuconfig.
- CONFIG_ESP_WIFI_SSID1
SSID of your wifi AP1.
- CONFIG_ESP_WIFI_PASSWORD1
PASSWORD of your wifi AP1.
- CONFIG_ESP_WIFI_SSID2
SSID of your wifi AP2.
- CONFIG_ESP_WIFI_PASSWORD2
PASSWORD of your wifi AP2.
- CONFIG_ESP_MAXIMUM_RETRY
Maximum number of retries when connecting to wifi.

