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 BLE_API by
Diff: public/BLEDevice.h
- Revision:
- 406:cec6778acc66
- Parent:
- 396:039ee79c9924
- Child:
- 407:ca6b956b33d1
diff -r 8fc6e6855806 -r cec6778acc66 public/BLEDevice.h
--- a/public/BLEDevice.h Mon May 18 09:54:27 2015 +0100
+++ b/public/BLEDevice.h Mon May 18 09:54:27 2015 +0100
@@ -269,7 +269,7 @@
* every advertisement report. Can be passed in as NULL, in which case
* scanning may not be enabled at all.
*/
- ble_error_t startScan(Gap::AdvertisementReportCallback_t callback);
+ ble_error_t startScan(void (*callback)(const Gap::AdvertisementCallbackParams_t *params));
/**
* Stop scanning. The current scanning parameters remain in effect.
@@ -783,7 +783,7 @@
}
inline ble_error_t
-BLEDevice::startScan(Gap::AdvertisementReportCallback_t callback) {
+BLEDevice::startScan(void (*callback)(const Gap::AdvertisementCallbackParams_t *params)) {
return transport->getGap().startScan(scanningParams, callback);
}
