Function esp_idf_sys::esp_now_fetch_peer
source ยท pub unsafe extern "C" fn esp_now_fetch_peer(
from_head: bool,
peer: *mut esp_now_peer_info_t,
) -> esp_err_t
Expand description
@brief 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.
@param from_head fetch from head of list or not @param peer peer information
@return - 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