From 17a74c04d71bf5692e58efce86e48019b2ac8591 Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Fri, 24 Apr 2015 15:10:15 +0100 Subject: [PATCH] add API for startScanning() --- public/BLEDevice.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/public/BLEDevice.h b/public/BLEDevice.h index d4e54f5..b6fd5d4 100644 --- a/public/BLEDevice.h +++ b/public/BLEDevice.h @@ -853,6 +853,11 @@ BLEDevice::stopScan(void) { return transport->getGap().stopScan(); } +inline ble_error_t +BLEDevice::startScanning(Gap::AdvertisementReportCallback_t callback) { + return transport->getGap().startScanning(scanningParams, callback); +} + inline ble_error_t BLEDevice::disconnect(Gap::DisconnectionReason_t reason) {