espressif / esp-mdf

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

编译esp-mdf\examples\aliyun_linkkit\mesh-with-aliyun时出错 #289

Open luotianzhu123 opened 2 years ago

luotianzhu123 commented 2 years ago

编译其他项目没有错误,编译esp-mdf\examples\aliyun_linkkit\mesh-with-aliyun时出现下面的错误

W:/esp-mdf/components/third_party/aliyun_sdk/coap/aliyun_coap.c:16:10: fatal error: coap.h: No such file or directory #include "coap.h" ^~~~~~~~

Jiangyafeng commented 1 year ago

@luotianzhu123 这是因为 idf 库下的 coap 发生了变化导致的 详细的请查看 componets 链接:https://github.com/espressif/esp-idf/tree/release/v4.4/components/coap/port/include/coap3

看一下这个路径,你可以将其 coap/aliyun_coap.c下的改为:

include "coap3/coap.h"

看是否可以?