Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.

Fork of BLE_API by Bluetooth Low Energy

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Wed May 13 08:51:08 2015 +0100
Parent:
386:d30591c3d39c
Child:
388:3fa9ce3b1b7a
Commit message:
Synchronized with git rev c7717aa4
Author: Rohit Grover
add API for stopScanning()

Changed in this revision

public/BLEDevice.h Show annotated file Show diff for this revision Revisions of this file
public/Gap.h Show annotated file Show diff for this revision Revisions of this file
--- a/public/BLEDevice.h	Wed May 13 08:51:08 2015 +0100
+++ b/public/BLEDevice.h	Wed May 13 08:51:08 2015 +0100
@@ -766,6 +766,12 @@
 }
 
 inline ble_error_t
+BLEDevice::stopScanning(void) {
+    return transport->getGap().stopScanning();
+}
+
+
+inline ble_error_t
 BLEDevice::disconnect(Gap::DisconnectionReason_t reason)
 {
     return transport->getGap().disconnect(reason);
--- a/public/Gap.h	Wed May 13 08:51:08 2015 +0100
+++ b/public/Gap.h	Wed May 13 08:51:08 2015 +0100
@@ -168,6 +168,7 @@
     virtual ble_error_t startAdvertising(const GapAdvertisingParams &)                             = 0;
     virtual ble_error_t stopAdvertising(void)                                                      = 0;
     virtual ble_error_t startScanning(const GapScanningParams &scanningParams, AdvertisementReportCallback_t callback) = 0;
+    virtual ble_error_t stopScanning()                                                             = 0;
     virtual uint16_t    getMinAdvertisingInterval(void) const                                      = 0;
     virtual uint16_t    getMinNonConnectableAdvertisingInterval(void) const                        = 0;
     virtual uint16_t    getMaxAdvertisingInterval(void) const                                      = 0;