nordic
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 250:55aa8e43f532
- Parent:
- 249:71ef03789dd3
- Child:
- 252:d4e0cf5e8751
diff -r 71ef03789dd3 -r 55aa8e43f532 btle/btle_discovery.cpp --- a/btle/btle_discovery.cpp Fri Jun 19 15:55:22 2015 +0100 +++ b/btle/btle_discovery.cpp Fri Jun 19 15:55:22 2015 +0100 @@ -27,6 +27,8 @@ ServiceDiscovery::launch(Gap::Handle_t connectionHandle, ServiceCallback_t sc, CharacteristicCallback_t cc) { discoverySingleton.serviceDiscoveryStarted(connectionHandle); + discoverySingleton.serviceCallback = sc; + discoverySingleton.characteristicCallback = cc; uint32_t rc; if ((rc = sd_ble_gattc_primary_services_discover(connectionHandle, NordicServiceDiscovery::SRV_DISC_START_HANDLE, NULL)) != NRF_SUCCESS) {