BLE_API_Tiny_BLE
Fork of BLE_API by
Revision 387:7faa54079669, committed 2015-05-13
- 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;