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 170:d886f281ead7, committed 2015-05-13
- Comitter:
- rgrover1
- Date:
- Wed May 13 08:49:35 2015 +0100
- Parent:
- 169:93cc9241d748
- Child:
- 171:6f80bdd27157
- Commit message:
- Synchronized with git rev 459e83e0
Author: Rohit Grover
add support for active scanning.
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:35 2015 +0100
+++ b/nRF51Gap.h Wed May 13 08:49:35 2015 +0100
@@ -81,7 +81,7 @@
if ((onAdvertisementReport = callback) != NULL) {
ble_gap_scan_params_t scanParams = {
- .active = 0, /**< If 1, perform active scanning (scan requests). */
+ .active = scanningParams.getActiveScanning(), /**< If 1, perform active scanning (scan requests). */
.selective = 0, /**< If 1, ignore unknown devices (non whitelisted). */
.p_whitelist = NULL, /**< Pointer to whitelist, NULL if none is given. */
.interval = scanningParams.getInterval(), /**< Scan interval between 0x0004 and 0x4000 in 0.625ms units (2.5ms to 10.24s). */
