TX 电源服务
TX 功率服务在连接时公开设备的当前发射功率水平。
示例
API 参考
Header File
Functions
- 
int8_t esp_ble_tps_get_tx_power_level(void)
- Get the TX Power Level of the device. - 返回
- : 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. - 参数
- tx_power_level – [in] The TX Power Level of the device 
- 返回
- 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. - 返回
- 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