Page 1 of 1

[solved] problem with WIFI_INIT_CONFIG_DEFAULT()

Posted: Thu Mar 30, 2017 9:07 am
by dhs2017
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.

Re: problem with WIFI_INIT_CONFIG_DEFAULT()

Posted: Sun Apr 02, 2017 3:14 am
by kolban
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.

Re: problem with WIFI_INIT_CONFIG_DEFAULT()

Posted: Tue Apr 04, 2017 3:25 pm
by dhs2017
Thanks!! the problem disappeared after I included the workspace and rebuild the index!!