[solved] problem with WIFI_INIT_CONFIG_DEFAULT()

dhs2017
Posts: 40
Joined: Thu Mar 30, 2017 8:56 am

[solved] problem with WIFI_INIT_CONFIG_DEFAULT()

Postby dhs2017 » Thu Mar 30, 2017 9:07 am

Hi all,

I am new on esp chips and I am trying the examples in esp-idf.

when i build the wifi sample code in eclipse ,

Code: Select all

wifi_init_config_t wifi_init_config = WIFI_INIT_CONFIG_DEFAULT();
		ESP_ERROR_CHECK(esp_wifi_init(&wifi_init_config));
If shows the error
Symbol 'wifi_init_config' could not be resolved
......I have already included the esp_wifi.h, the code can be built and flash to the chip and function.
When I move the mouse to WIFI_INIT_CONFIG_DEFAULT(), it pop up syntax error, if I press ctrl and click on it, it still can go to the esp_wifi.h header file. Although it still can compile but the error message is annoying, Any one can help on this , thanks.

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: problem with WIFI_INIT_CONFIG_DEFAULT()

Postby kolban » Sun Apr 02, 2017 3:14 am

It might be that this video will be of use to you ...

https://www.youtube.com/watch?v=bYh2w0HzS7s

I am guessing that you haven't configured the Eclipse environment with knowledge of where to search to find the header files for indexing for the name validations.
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

dhs2017
Posts: 40
Joined: Thu Mar 30, 2017 8:56 am

Re: problem with WIFI_INIT_CONFIG_DEFAULT()

Postby dhs2017 » Tue Apr 04, 2017 3:25 pm

Thanks!! the problem disappeared after I included the workspace and rebuild the index!!

Who is online

Users browsing this forum: Google [Bot], thefury and 108 guests