mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-06 07:49:58 +00:00
fix TX power value in ble adv data is incorrect
refence to https://github.com/espressif/esp-idf/issues/2284 Before fixing, the tx power in adv data is always 0xeb(-21dbm). restriction: If change BLE advertising TX power, please call esp_ble_gap_config_adv_data() after BLE adv TX power changed. Later, will implement set BLE advertising TX power via HCI, then the TX power value in adv data can be update automatically after BLE adv TX power changed.
This commit is contained in:
@@ -375,10 +375,7 @@ typedef UINT8 tBTM_BLE_AD_TYPE;
|
||||
|
||||
/* adv tx power level */
|
||||
#define BTM_BLE_ADV_TX_POWER_MIN 0 /* minimum tx power */
|
||||
#define BTM_BLE_ADV_TX_POWER_LOW 1 /* low tx power */
|
||||
#define BTM_BLE_ADV_TX_POWER_MID 2 /* middle tx power */
|
||||
#define BTM_BLE_ADV_TX_POWER_UPPER 3 /* upper tx power */
|
||||
#define BTM_BLE_ADV_TX_POWER_MAX 4 /* maximum tx power */
|
||||
#define BTM_BLE_ADV_TX_POWER_MAX 7 /* maximum tx power */
|
||||
typedef UINT8 tBTM_BLE_ADV_TX_POWER;
|
||||
|
||||
/* adv tx power in dBm */
|
||||
|
Reference in New Issue
Block a user