Function esp_idf_hal::sys::esp_now_add_peer
source ยท pub unsafe extern "C" fn esp_now_add_peer(
peer: *const esp_now_peer_info,
) -> i32
Expand description
@brief Add a peer to peer list
@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_FULL : peer list is full - ESP_ERR_ESPNOW_NO_MEM : out of memory - ESP_ERR_ESPNOW_EXIST : peer has existed