add the other form of launch()

This commit is contained in:
Rohit Grover 2015-05-06 16:03:46 +01:00
parent ff7401b70d
commit b57e1ec8e4
1 changed files with 13 additions and 0 deletions

View File

@ -48,6 +48,19 @@ ServiceDiscovery::launch(Gap::Handle_t connectionHandle, ServiceCallback_t sc, C
return BLE_ERROR_NONE;
}
ble_error_t
ServiceDiscovery::launch(Gap::Handle_t connectionHandle,
UUID matchingServiceUUIDIn,
ServiceCallback_t sc,
UUID matchingCharacteristicUUIDIn,
CharacteristicCallback_t cc)
{
discoverySingleton.matchingServiceUUID = matchingServiceUUIDIn;
discoverySingleton.matchingCharacteristicUUID = matchingCharacteristicUUIDIn;
return launch(connectionHandle, sc, cc);
}
void
ServiceDiscovery::terminate(void)
{