grodansparadis / esp-now

A connectionless Wi-Fi communication protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP-NOW Component

Component Registry

esp-now supports one-to-many and many-to-many device connection and control which can be used for the mass data transmission, like network config, firmware upgrade and debugging etc.

Add component to your project

Please use the component manager command add-dependency to add the esp-now to your project's dependency, during the CMake step the component will be downloaded automatically.

idf.py add-dependency "espressif/esp-now=*"

Example

Please use the component manager command create-project-from-example to create the project from example template.

idf.py create-project-from-example "espressif/esp-now=*:coin_cell_demo"

Then the example will be downloaded in current folder, you can check into it for build and flash.

You can use this command to download other examples. Or you can download examples from esp-now repository:

  1. coin_cell_demo
  2. control
  3. get-started
  4. ota
  5. security
  6. solution
  7. wireless_debug

Q&A

Q1. I encountered the following problems when using the package manager

  HINT: Please check manifest file of the following component(s): main

  ERROR: Because project depends on esp-now (2.*) which doesn't match any
  versions, version solving failed.

A1. For the examples downloaded by using this command, you need to comment out the override_path line in the main/idf_component.yml of each example.

Q2. I encountered the following problems when using the package manager

Executing action: create-project-from-example
CMakeLists.txt not found in project directory /home/username

A2. This is because an older version packege manager was used, please run pip install -U idf-component-manager in ESP-IDF environment to update.

About

A connectionless Wi-Fi communication protocol

License:Apache License 2.0


Languages

Language:C 99.2%Language:CMake 0.8%