I am setting up the softAP_sta example from the esp-idf on GitHub, but I cannot have both modes simultaneously. When I only initialize the ssid and pass variables for the station mode or only initialize the ssid and pass variables for the AP mode, the code works and I can see that it performs additional tasks in the logs.
However, when I initialize both variables simultaneously, I can no longer use either of its parts, and the logs do not write anything beyond the return app_main part.
Code: Select all
/* STA Configuration */
#define EXAMPLE_ESP_WIFI_STA_SSID CONFIG_ESP_WIFI_REMOTE_AP_SSID
#define EXAMPLE_ESP_WIFI_STA_PASSWD CONFIG_ESP_WIFI_REMOTE_AP_PASSWORD
/* AP Configuration */
#define EXAMPLE_ESP_WIFI_AP_SSID "test"
#define EXAMPLE_ESP_WIFI_AP_PASSWD "test1234"