Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error - "Wi-Fi Provisioning Manager Example" (IDFGH-14778) #15516

Closed
3 tasks done
ShanmugaCA opened this issue Mar 4, 2025 · 2 comments
Closed
3 tasks done

Build error - "Wi-Fi Provisioning Manager Example" (IDFGH-14778) #15516

ShanmugaCA opened this issue Mar 4, 2025 · 2 comments
Labels
Status: Opened Issue is new Type: Bug bugs in IDF

Comments

@ShanmugaCA
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

5.3.2

Operating System used.

Windows

How did you build your project?

Command line with idf.py

If you are using Windows, please specify command line type.

CMD

What is the expected behavior?

  • ESP IDF example should build without any errors! But there is a build issue

What is the actual behavior?

  1. run idf.py build
  2. Below errors observed.
  3. Used the example code and no changes made other than setting the flash to 4 MB in menuconfig

+++++++++++++++++++++++++

/esp-idf/examples/provisioning/wifi_prov_mgr/main/app_main.c: In function 'app_main':

/esp-idf/examples/provisioning/wifi_prov_mgr/main/app_main.c:346:10: error: 'wifi_prov_mgr_config_t' has no member named 'wifi_prov_conn_cfg'
346 | .wifi_prov_conn_cfg = {
| ^~~~~~~~~~~~~~~~~~

/esp-idf/examples/provisioning/wifi_prov_mgr/main/app_main.c:347:13: error: 'wifi_prov_scheme_t' {aka 'struct wifi_prov_scheme'} has no member named 'wifi_conn_attempts'
347 | .wifi_conn_attempts = CONFIG_EXAMPLE_PROV_MGR_CONNECTION_CNT,

+++++++++++++++++++++++++

Steps to reproduce.

  1. Step: Using Windows system, ESP IDF version 5.3.2 and idf.py for building from CMD prompt
  2. Step: download .... git clone https://github.com/espressif/esp-idf.git
  3. Step: In CMD prompt, change to the wifi provisionong manager ... cd esp-idf/examples/provisioning/wifi_prov_mgr
  4. Step... idf.py menuconfig -> Serial Flash Config -> Flash size -> 4MB ...set the 4MB flash
  5. Step ... run idf.py build ... getting the build error ... see the actual behaviour

Build or installation Logs.

/esp-idf/examples/provisioning/wifi_prov_mgr/main/app_main.c: In function 'app_main':

/esp-idf/examples/provisioning/wifi_prov_mgr/main/app_main.c:346:10: error: 'wifi_prov_mgr_config_t' has no member named 'wifi_prov_conn_cfg'
  346 |         .wifi_prov_conn_cfg = {
      |          ^~~~~~~~~~~~~~~~~~


/esp-idf/examples/provisioning/wifi_prov_mgr/main/app_main.c:347:13: error: 'wifi_prov_scheme_t' {aka 'struct wifi_prov_scheme'} has no member named 'wifi_conn_attempts'
  347 |            .wifi_conn_attempts =  CONFIG_EXAMPLE_PROV_MGR_CONNECTION_CNT,

More Information.

No response

@ShanmugaCA ShanmugaCA added the Type: Bug bugs in IDF label Mar 4, 2025
@github-actions github-actions bot changed the title Build error - "Wi-Fi Provisioning Manager Example" Build error - "Wi-Fi Provisioning Manager Example" (IDFGH-14778) Mar 4, 2025
@espressif-bot espressif-bot added the Status: Opened Issue is new label Mar 4, 2025
@ShanmugaCA
Copy link
Author

Closed!

  • The example code build without errors and worked in v5.3.2 after the addition of wifi_prov_conn_cfg_t wifi_prov_conn_cfg;
    inside the type wifi_prov_mgr_config_t;

  • File name modified : manager.h

Tested and working as expected so closing this case!

Thanks,
BR,
Shanmuganathan

@ShanmugaCA
Copy link
Author

Closed!

The example code build without errors and worked in v5.3.2 after the addition of wifi_prov_conn_cfg_t wifi_prov_conn_cfg;
inside the type wifi_prov_mgr_config_t;

File name modified : manager.h

Tested and working as expected so closing this case!

Thanks,
BR,
Shanmuganathan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

2 participants