Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Revision 168:a24112aa18a1, committed 2015-05-13
- Comitter:
- rgrover1
- Date:
- Wed May 13 08:49:35 2015 +0100
- Parent:
- 167:66ee4f876396
- Child:
- 169:93cc9241d748
- Commit message:
- Synchronized with git rev 82408ba7
Author: Rohit Grover
add implementation for stopScanning()
Changed in this revision
| nRF51Gap.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/nRF51Gap.h Wed May 13 08:49:34 2015 +0100
+++ b/nRF51Gap.h Wed May 13 08:49:35 2015 +0100
@@ -97,6 +97,14 @@
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() {
