migrate to sd_ble_gap_tx_power_set SD v6

This commit is contained in:
hathach committed 2018-05-21 21:12:42 +07:00
1 parent da5e5b2b8a
commit 9d0979c8be
2 files changed
+18 -11

No files matched your search

@@ -360,6 +360,7 @@ bool BLEAdvertising::_start(uint16_t interval, uint16_t timeout)
.scan_rsp_data = { .p_data = Bluefruit.ScanResponse.getData(), .len = Bluefruit.ScanResponse.count() }
};
VERIFY_STATUS( sd_ble_gap_adv_set_configure(&_hdl, &gap_adv, &adv_para), false );
VERIFY_STATUS( sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, _hdl, Bluefruit.getTxPower() ), false );
VERIFY_STATUS( sd_ble_gap_adv_start(_hdl, CONN_CFG_PERIPHERAL), false );
Bluefruit._startConnLed(); // start blinking