aa
Dependents: Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 249:55aa8e43f532
- Parent:
- 248:71ef03789dd3
- Child:
- 251:d4e0cf5e8751
--- 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) {