abc

Fork of BLE_API by Bluetooth Low Energy

Revision:
406:cec6778acc66
Parent:
396:039ee79c9924
Child:
407:ca6b956b33d1
--- 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);
 }