最近研究了一下点灯科技的app,看到官方提供的esp32 idf组件库支持v4.3/v4.4,所以就将其移植一下,让其支持v5.1版本,下载地址如下:
https://github.com/guxiangguo/blinker-esp-idf_v5.1.git
https://gitee.com/gu-xiangguo/blinker-esp-idf_v5.1.git
具体使用方法参见官方指导手册,v5.1需要在工程下加入如下文件idf_component.yml,内容如下:
## IDF Component Manager Manifest File
dependencies:
espressif/mdns: "^1.2.3"
## Required IDF version
idf:
version: ">=4.1.0"
# # Put list of dependencies here
# # For components maintained by Espressif:
# component: "~1.0.0"
# # For 3rd party components:
# username/component: ">=1.0.0,<2.0.0"
# username2/component2:
# version: "~1.0.0"
# # For transient dependencies `public` flag can be set.
# # `public` flag doesn't have an effect dependencies of the `main` component.
# # All dependencies of `main` are public by default.
# public: true
这是由于esp-idf 5.1将mdns组件移除了。