Olimex Support Forum

Microcontrollers => ESP32 => Topic started by: campestring on December 18, 2020, 10:29:16 am

Title: Issue to send ssid and password to wifi config struct (esp-idf)
Post by: campestring on December 18, 2020, 10:29:16 am
Hello everyone I am trying to do this :

void wifi_init_sta(char* wifiname, char* password)
...
wifi_config_t wifi_config = {
        .sta = {
            .ssid = wifiname, //not working
            .password = password,// not working too

And It doesn't work I have tryed a lot of technics but Nothing is working... I have made some research but I didn't find anything...
THank you !
Title: Re: Issue to send ssid and password to wifi config struct (esp-idf)
Post by: LubOlimex on December 18, 2020, 01:56:04 pm
What board exactly do you have?

For software support with default ESP-IDF it might be a good idea to also post  post in the espressif forums or check the issues at ESP-IDF's GitHub.
Title: Re: Issue to send ssid and password to wifi config struct (esp-idf)
Post by: campestring on December 21, 2020, 10:42:15 am
I am using an ESP32-EVB, I didn't find any answer to the problem...
Title: Re: Issue to send ssid and password to wifi config struct (esp-idf)
Post by: LubOlimex on January 20, 2021, 10:31:15 am
We tested it. The default demos work fine. You can find the demo we tested Examples -> wifi -> getting_started -> softAP. Make sure to use the default demo and via the menuconfig to add your network settings (passwords, SSID).