esp_now_fetch_peer() function
Fetch a peer from peer list. Only return the peer which address is unicast, for the multicast/broadcast address, the function will ignore and try to find the next in the peer list.
Arguments
from_head
fetch from head of list or not
Return value
- ESP_OK : succeed - ESP_ERR_ESPNOW_NOT_INIT : ESPNOW is not initialized - ESP_ERR_ESPNOW_ARG : invalid argument - ESP_ERR_ESPNOW_NOT_FOUND : peer is not found