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.
Dependents: BLE_PowerBank_HeyFaradey
Fork of BLE_API by
Diff: public/Gap.h
- Revision:
- 385:6e66d1c6de00
- Parent:
- 382:dcd0428dadb0
- Child:
- 387:7faa54079669
diff -r 48412313df56 -r 6e66d1c6de00 public/Gap.h
--- a/public/Gap.h Wed May 13 08:51:07 2015 +0100
+++ b/public/Gap.h Wed May 13 08:51:08 2015 +0100
@@ -19,6 +19,7 @@
#include "GapAdvertisingData.h"
#include "GapAdvertisingParams.h"
+#include "GapScanningParams.h"
#include "GapEvents.h"
#include "CallChain.h"
@@ -166,6 +167,7 @@
virtual ble_error_t setAdvertisingData(const GapAdvertisingData &, const GapAdvertisingData &) = 0;
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 uint16_t getMinAdvertisingInterval(void) const = 0;
virtual uint16_t getMinNonConnectableAdvertisingInterval(void) const = 0;
virtual uint16_t getMaxAdvertisingInterval(void) const = 0;
@@ -349,6 +351,7 @@
LinkSecuredCallback_t onLinkSecured;
HandleSpecificEvent_t onSecurityContextStored;
PasskeyDisplayCallback_t onPasskeyDisplay;
+ AdvertisementReportCallback_t onAdvertisementReport;
CallChain disconnectionCallChain;
private:
