add support for active scanning.

This commit is contained in:
Rohit Grover 2015-05-11 12:01:45 +01:00
parent 7d0cc16975
commit 459e83e03b

View file

@ -81,7 +81,7 @@ public:
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). */