Function esp_idf_sys::esp_ble_tx_power_set

source ยท
pub unsafe extern "C" fn esp_ble_tx_power_set(
    power_type: esp_ble_power_type_t,
    power_level: esp_power_level_t,
) -> esp_err_t
Expand description

@brief Set BLE TX power

@note Connection TX power should only be set after the connection is established.

@param[in] power_type The type of TX power. It could be Advertising, Connection, Default, etc. @param[in] power_level Power level (index) corresponding to the absolute value (dBm)

@return - ESP_OK: Success - ESP_ERR_INVALID_ARG: Invalid argument