espressif / esp-mdf

Espressif Mesh Development Framework, limited maintain, recommend to use https://github.com/espressif/esp-mesh-lite
Other
774 stars 253 forks source link

Mconfig example error : unknown type name 'mesh_chain_layer_t' #295

Closed karunt closed 2 years ago

karunt commented 2 years ago

Environment

Problem Description

Trying to flash function_demo/mconfig and function_demo/mwifi/router examples, but get following error:

In file included from C:/Users/Karun/ESP/esp-mdf/components/mconfig/include/mconfig_queue.h:20, from C:/Users/Karun/ESP/esp-mdf/components/mconfig/include/mconfig_blufi.h:21, from C:/Users/Karun/ESP/esp-mdf/components/mconfig/mconfig_blufi.c:38: C:/Users/Karun/ESP/esp-mdf/components/mwifi/include/mwifi.h:265:59: error: unknown type name 'mesh_chain_layer_t'; did you mean 'esp_chip_model_t'? esp_err_t esp_wifi_vnd_mesh_get(mesh_assoc_t mesh_assoc, mesh_chain_layer_t mesh_chain); ^~~~~~ esp_chip_model_t

Expected Behavior

Without making any modifications to the code for this example, I would have expected it to work without any issues, at least flash on to the chip without any issues.

Actual Behavior

See error shown above under "Description"

Steps to repropduce

  1. Go to example directory
  2. Type "esp.idf flash monitor --port COM3"
Jiangyafeng commented 2 years ago

Hi @karunt What version of idf are you using? You should be operating submodules, right? This should be caused by your incomplete idf library.

karunt commented 2 years ago

Re-installed idf and mdf latest versions and that solved the problem. Consider this issue closed. Thanks.