Skip to main content

esp_now_switch_channel_tx

Function esp_now_switch_channel_tx 

Source
pub unsafe extern "C" fn esp_now_switch_channel_tx(
    config: *mut esp_now_switch_channel_t,
) -> esp_err_t
Expand description

@brief ESPNOW switch to a specific channel for a required duration, and send one ESPNOW data.

@param config ESPNOW switch channel relevant information

@return - ESP_OK : succeed - ESP_ERR_NO_MEM: failed to allocate memory - ESP_ERR_INVALID_ARG: the <channel, sec_channel> pair is invalid - ESP_FAIL: failed to send frame