espressif / esp-now

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

Developing a many-to-many network? #15

Closed nickkoza closed 2 years ago

nickkoza commented 2 years ago

Hello! I've watched the official video on ESP-Now (https://www.youtube.com/watch?v=QmvMtgNs9r8) and have a few questions about the details:

Thanks for your help!

LJYSP commented 2 years ago
  1. The keypad sends broadcast packets to lights, and the lights can also forward the message to more lights.

  2. If send unicast packets to a device, the sender should add the device to peer and keeping peers under 20 devices. If not send unicast packet, like in the project, mainly in broadcast packet, the sender just need add broadcast peer and send broadcast to many lights.

  3. Devices can be paired, we called bind in the project, for example example/control. Or not paired, a new device can directly send to or recv from other devices.

4.Readlize a muti-hop network through data forwarding function. Please refer to esp-now/examples/dev_kits/button_remote_control

  1. Please refer to esp-now/examples/wireless_debug, open "Enable WebServer debugging" in menuconfig. Connect to the softap and access to the web server espnow-webserver/.
nickkoza commented 2 years ago

Okay, excellent. That makes sense. I was wondering if those examples were using broadcast but the video hadn't mentioned. Thanks for your help!

JuandreG commented 2 years ago

Can not find the "esp-now/examples/dev_kits/button_remote_control" mentioned. Can we please have a new link?

larryli commented 2 years ago

Can not find the "esp-now/examples/dev_kits/button_remote_control" mentioned. Can we please have a new link?

https://github.com/espressif/esp-now/tree/1e7a050d92a88eb45ab03c2c92af9838454791d4/examples/dev_kits/button_remote_control