espressif / esp-now

A connectionless Wi-Fi communication protocol
Apache License 2.0
506 stars 93 forks source link

I already have the DEVELOPMENT environment for ESP-IDF. How can I integrate ESP-NOW into the IDF project #2

Closed lybgo closed 2 years ago

lybgo commented 2 years ago

I already have the DEVELOPMENT environment for ESP-IDF. How can I integrate ESP-NOW into the IDF project

zhanzhaocheng commented 2 years ago

Add set(ESPNOW_PATH /path/to/esp-now/) in CMakeLists.txt in your project directory or Add environment variable export ESPNOW_PATH=/path/to/esp-now/

lybgo commented 2 years ago

I have set set(ESPNOW_PATH /path/to/esp-now/), but there is an error 微信截图_20210923114058 . 微信图片_20210923114213

lybgo commented 2 years ago

Need to add more code: set(EXTRA_COMPONENT_DIRS ${ESPNOW_PATH}/components)