HarringayMakerSpace / ESP-Now

ESP-Now Examples
301 stars 48 forks source link

Does esp_now_add_peer really make any difference ? #12

Open mars000 opened 5 years ago

mars000 commented 5 years ago

I've been playing with ESP-NOW on ESP8266 and found that b-directional communication works fine with and without me using esp_now_add_peer. Which made me think what does this function call achieve or do ? I can' seem to work it out....anyone know ? (the Espressif documentation is not so helpful)

BTW: I found the same situation with setting the WiFi channel using add_peer to have no consequence.

Any insight would be great ;-)

WindyYam commented 5 years ago

as far as the espressif documents indicate, the master should register the mac of slave to receive message from it .the channel message in the peer config is for your reference only it doesnt do anything

mars000 commented 5 years ago

thanks for response. Makes sense. Not sure how you deciphered the cryptic espressif documentation on esp-now -if you can tell me where this is indicated it will serve as a reference for myself and others in the community... well done ;-)