Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
Diff: btle/btle_discovery.cpp
- Revision:
- 254:c14e1d09f197
- Parent:
- 252:4b3f294415f5
- Child:
- 255:d228656b0cd1
diff -r f30c1233e9db -r c14e1d09f197 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 @@ -151,8 +151,9 @@ NordicServiceDiscovery::progressServiceDiscovery(void) { while (sDiscoveryActive && (serviceIndex < numServices)) { - /* THIS IS WHERE THE CALLBACK WILL GO */ - printf("%x [%u %u]\r\n", services[serviceIndex].uuid, services[serviceIndex].startHandle, services[serviceIndex].endHandle); + if (serviceCallback) { + serviceCallback(services[serviceIndex]); + } if (true) { /* characteristic discovery is optional. */ launchCharacteristicDiscovery(connHandle, services[serviceIndex].startHandle, services[serviceIndex].endHandle);