test

Dependencies:   nrf51-sdk

Dependents:   microbit-dal

Fork of nRF51822 by Lancaster University

Revision:
257:6e0ae0f1697b
Parent:
255:d228656b0cd1
Child:
258:62d6bf03e6a4
diff -r 2f2e9f1d6275 -r 6e0ae0f1697b btle/btle_discovery.cpp
--- a/btle/btle_discovery.cpp	Fri Jun 19 15:55:23 2015 +0100
+++ b/btle/btle_discovery.cpp	Fri Jun 19 15:55:23 2015 +0100
@@ -48,6 +48,19 @@
     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)
 {