invoke serviceCallback

This commit is contained in:
Rohit Grover 2015-05-06 15:45:16 +01:00
parent 4ece950d3c
commit 4e5a8459b4
1 changed files with 3 additions and 2 deletions

View File

@ -151,8 +151,9 @@ void
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);