Cannot build WiFi AP example (<property> not defined)

Serg1987
Posts: 7
Joined: Fri Apr 03, 2020 3:33 am

Cannot build WiFi AP example (<property> not defined)

Postby Serg1987 » Sun Apr 05, 2020 3:46 pm

Hello again. This is my second attempt for getting help.
I try to build example from esp-idf :
esp-idf/examples/wifi/getting_started/softAP/
But, it shows me error in line

Code: Select all

wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
Error (in WIFI_INIT_CONFIG_DEFAULT()) :
Image
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM not defined;
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM not defined;
CONFIG_ESP32_WIFI_TX_BUFFER_TYPE not defined;

Defined properties are green fonted:
Image
I cannot find where this properties (written above) defined. Nothing anywhere(no it in esp_wifi.h or some others included *.h-files) (besides sdkconfig file, but it's useless)
Is it means that I must modify (define undefined props manually, literally write my own esp-idf v1000.0) instead of using the finished v4.0??? :evil:

ESP_Sprite
Posts: 9016
Joined: Thu Nov 26, 2015 4:08 am

Re: Cannot build WiFi AP example (<property> not defined)

Postby ESP_Sprite » Sun Apr 05, 2020 7:44 pm

Those lines normally get dropped in a sdkconfig.h that is generated after you configure the project for the first time. Simply build the project once and that file will exist and the issues should be solved.

Serg1987
Posts: 7
Joined: Fri Apr 03, 2020 3:33 am

Re: Cannot build WiFi AP example (<property> not defined)

Postby Serg1987 » Mon Apr 06, 2020 5:56 am

O, man. Great thanks. ;)
I still included

Code: Select all

#include "build/config/sdkconfig.h"

And error dissapeared

Who is online

Users browsing this forum: No registered users and 131 guests