migrate to S132 v500
- sd_ble_gap_connect - sd_ble_gap_adv_start
This commit is contained in:
1 parent
3f6c8f55dd
commit
3c7487070e
2 files changed
+8
-8
No files matched your search
@@ -296,15 +296,15 @@ bool BLEAdvertising::_start(uint16_t interval, uint16_t timeout)
|
||||
// ADV Params
|
||||
ble_gap_adv_params_t adv_para =
|
||||
{
|
||||
.type = _type ,
|
||||
.p_peer_addr = NULL , // Undirected advertisement
|
||||
.fp = BLE_GAP_ADV_FP_ANY ,
|
||||
.p_whitelist = NULL ,
|
||||
.interval = interval , // advertising interval (in units of 0.625 ms)
|
||||
.timeout = timeout ,
|
||||
.type = _type ,
|
||||
.p_peer_addr = NULL , // Undirected advertisement
|
||||
.fp = BLE_GAP_ADV_FP_ANY ,
|
||||
.interval = interval , // advertising interval (in units of 0.625 ms)
|
||||
.timeout = timeout ,
|
||||
.channel_mask = { 0, 0, 0 } , // Enable all 3 adv channels
|
||||
};
|
||||
|
||||
VERIFY_STATUS( sd_ble_gap_adv_start(&adv_para), false );
|
||||
VERIFY_STATUS( sd_ble_gap_adv_start(&adv_para, BLE_CONN_CFG_TAG_DEFAULT), false );
|
||||
|
||||
Bluefruit._startConnLed(); // start blinking
|
||||
_runnning = true;
|
||||
|
||||
Reference in new issue
Block a user