espressif / esp-mesh-lite

A lite version Wi-Fi Mesh, each node can access the network over the IP layer.
133 stars 22 forks source link

The compilation shows that the enumerated variable WIFI_PROV_CUST_DATA_RECV does not exist (AEGHB-821) #124

Open highhandli opened 1 month ago

highhandli commented 1 month ago

Checklist

How often does this bug occurs?

always

Expected behavior

Compiled through

Actual behavior (suspected bug)

The compilation did not pass

Error logs or terminal output

/home/ligaowen/smart_gw/esp_projs/esp-idf-all-5.1/components/wifi_provisioning/src/manager.c: In function 'wifi_prov_mgr_configure_meshlite':
/home/ligaowen/smart_gw/esp_projs/esp-idf-all-5.1/components/wifi_provisioning/src/manager.c:1340:22: error: 'WIFI_PROV_CUST_DATA_RECV' undeclared (first use in this function); did you mean 'WIFI_PROV_CRED_RECV'?
 1340 |     execute_event_cb(WIFI_PROV_CUST_DATA_RECV, data, size);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~
      |                      WIFI_PROV_CRED_RECV

Steps to reproduce the behavior

I couldn't find the definition of the enumerated variable WIFI_PROV_CUST_DATA_RECV from the latest documentation on the official website, and the compilation did not pass

Project release version

the latest

System architecture

other (details in Additional context)

Operating system

Linux

Operating system version

freeRTOS

Shell

other (details in Additional context)

Additional context

No response

tswen commented 1 month ago

https://github.com/espressif/esp-mesh-lite/blob/master/components/mesh_lite/src/wifi_prov/wifi_provisioning.patch

Please check if this patch is not applied to esp-idf successfully. If you do not use the zero-provisioning feature, you can manually add the line of code https://github.com/espressif/esp-mesh-lite/blob/master/components/mesh_lite/src/wifi_prov/wifi_provisioning.patch#L9 to esp-idf first.