add API for startScanning()

This commit is contained in:
Rohit Grover 2015-04-24 15:10:15 +01:00
parent 8d3e092916
commit 17a74c04d7

View file

@ -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)
{