Thanks a lot!
I had not realized it is union! It would be handy to have it as struct if you want to switch between modes or use APSTA mode. In my case I will not save some money because I need to keep track of both AP and STA configurations...
But now I can finally move one in peace .
Search found 2 matches
- Fri Apr 20, 2018 9:20 am
- Forum: ESP-IDF
- Topic: wifi_config_t structrue ap and sta members are overriten
- Replies: 2
- Views: 6305
- Thu Apr 19, 2018 3:53 pm
- Forum: ESP-IDF
- Topic: wifi_config_t structrue ap and sta members are overriten
- Replies: 2
- Views: 6305
wifi_config_t structrue ap and sta members are overriten
Hi, I'm starting a project with ESP32 using esp-idf and I'm getting some wierd behaviors when using wifi_config_t structures. If I initialize the structure like this: wifi_config_t wifi_cfg = { .ap = { .ssid = "TEST", .password = "TESTPASS", .ssid_len = 8, .channel = 1, .authmode = WIFI_AUTH_WPA2_PS...