ESP32 STA configuration
Posted: Wed Aug 22, 2018 7:35 pm
I'm trying to make ESP32 connect to AP, I''ve two different codes, one is working and the other isn't
module connects to AP when i declare the following:
wifi_config_t wifi_config_sta= {
.sta = {
.ssid = CONFIG_DEAFULT_AP_SSID,//ESP_STA_SSID,
.password = CONFIG_DEFAULT_AP_WIFI_PASSWORD//ESP_STA_PASS
},
};
module didn't connect to AP when I initialize like:
strcpy ((char*)wifi_config_sta.sta.ssid, CONFIG_DEAFULT_AP_SSID);
strcpy ((char*)wifi_config_sta.sta.password, CONFIG_DEFAULT_AP_WIFI_PASSWORD);
can anyone tell me what is the differences between this declerations?
Thank you in advance,
module connects to AP when i declare the following:
wifi_config_t wifi_config_sta= {
.sta = {
.ssid = CONFIG_DEAFULT_AP_SSID,//ESP_STA_SSID,
.password = CONFIG_DEFAULT_AP_WIFI_PASSWORD//ESP_STA_PASS
},
};
module didn't connect to AP when I initialize like:
strcpy ((char*)wifi_config_sta.sta.ssid, CONFIG_DEAFULT_AP_SSID);
strcpy ((char*)wifi_config_sta.sta.password, CONFIG_DEFAULT_AP_WIFI_PASSWORD);
can anyone tell me what is the differences between this declerations?
Thank you in advance,