TX Power Service
The Tx power service expose the current transmit power level of a device when in a connection.
Examples
API Reference
Header File
Functions
- 
int8_t esp_ble_tps_get_tx_power_level(void)
- Get the TX Power Level of the device. - Returns
- : The TX Power Level of the device 
 
- 
esp_err_t esp_ble_tps_set_tx_power_level(int8_t tx_power_level)
- Set the TX Power Level of the device. - Parameters
- tx_power_level – [in] The TX Power Level of the device 
- Returns
- ESP_OK on successful 
- ESP_ERR_INVALID_ARG on wrong TX Power Level 
 
 
- 
esp_err_t esp_ble_tps_init(void)
- Initialization TX Power Service. - Returns
- ESP_OK on successful 
- ESP_ERR_INVALID_ARG on wrong initialization 
- ESP_FAIL on error 
 
 
Macros
- 
BLE_TPS_UUID16
- 
BLE_TPS_CHR_UUID16_TX_POWER_LEVEL