ESP-NOW how "esp_now_del_peer" works?
Posted: Fri Jan 03, 2020 3:31 pm
Dears All,
In my next project I need to have a communication between a "master" and some "slaves" and I am thinking to use the ESP32-NOW protocol.
one of the steps that I want to implement is a "is still alive" check.
If not I want/need to remove the peer node from the list...but how the deleting works?...I mean...for example...I have peer list of 10 nodes (then from 0 to 9)...the peer[4] is not active...I will invoke the "esp_now_del_peer" ...the nodes after [4] will be shift on the top, then the position [9] will be available or the position [4] will be "blank" and the other will stay at the same position?
Also...when I will add a new node this will take the firtly blank position or will always added after the last busy position?
I hope that my request is clear enough
I am really new in this world...and I have to learn a lot.
thanks
In my next project I need to have a communication between a "master" and some "slaves" and I am thinking to use the ESP32-NOW protocol.
one of the steps that I want to implement is a "is still alive" check.
If not I want/need to remove the peer node from the list...but how the deleting works?...I mean...for example...I have peer list of 10 nodes (then from 0 to 9)...the peer[4] is not active...I will invoke the "esp_now_del_peer" ...the nodes after [4] will be shift on the top, then the position [9] will be available or the position [4] will be "blank" and the other will stay at the same position?
Also...when I will add a new node this will take the firtly blank position or will always added after the last busy position?
I hope that my request is clear enough
I am really new in this world...and I have to learn a lot.
thanks