Skip to content

Commit

Permalink
Remove TX power level from adv data
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Dec 7, 2021
1 parent 79cbae1 commit 8ca11eb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/esp32/esp32_bt_gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -241,13 +241,9 @@ bool esp32_bt_gap_start_advertising(void) {
} else {
struct ble_hs_adv_fields fields = {
.flags = 0,

.name = (uint8_t *) dev_name,
.name_len = strlen(dev_name),
.name_is_complete = true,

.tx_pwr_lvl = BLE_HS_ADV_TX_PWR_LVL_AUTO,
.tx_pwr_lvl_is_present = true,
};
if ((rc = ble_gap_adv_set_fields(&fields)) != 0) {
LOG(LL_ERROR, ("ble_gap_adv_set_fields: %d", rc));
Expand Down

0 comments on commit 8ca11eb

Please sign in to comment.