add implementation for stopScanning()
This commit is contained in:
parent
b90fafa58b
commit
82408ba7ca
1 changed files with 8 additions and 0 deletions
|
@ -97,6 +97,14 @@ public:
|
|||
return BLE_ERROR_NONE;
|
||||
}
|
||||
|
||||
virtual ble_error_t stopScanning(void) {
|
||||
if (sd_ble_gap_scan_stop() == NRF_SUCCESS) {
|
||||
return BLE_ERROR_NONE;
|
||||
}
|
||||
|
||||
return BLE_STACK_BUSY;
|
||||
}
|
||||
|
||||
private:
|
||||
uint16_t m_connectionHandle;
|
||||
nRF51Gap() {
|
||||
|
|
Loading…
Reference in a new issue