Function esp_idf_hal::sys::esp_now_set_peer_rate_config
source ยท pub unsafe extern "C" fn esp_now_set_peer_rate_config(
peer_addr: *const u8,
config: *mut esp_now_rate_config,
) -> i32
Expand description
@brief Set ESPNOW rate config for each peer
@attention 1. This API should be called after esp_wifi_start() and esp_now_init().
@param peer_addr peer MAC address @param config rate config to be configured.
@return - ESP_OK : succeed - ESP_ERR_ESPNOW_NOT_INIT : ESPNOW is not initialized - ESP_ERR_ESPNOW_ARG : invalid argument - ESP_ERR_ESPNOW_INTERNAL : internal error