test

Fork of nRF51822 by Nordic Semiconductor

Files at this revision

API Documentation at this revision

Comitter:
rgrover1
Date:
Tue Jul 21 13:23:45 2015 +0100
Parent:
391:8cc3528a1233
Child:
393:0f7c5048efb3
Commit message:
Synchronized with git rev 2e686550
Author: Andrew Fernandes
nRF51ServiceDiscovery should be able to match short AND long UUIDs.

Changed in this revision

source/nRF51ServiceDiscovery.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/source/nRF51ServiceDiscovery.cpp	Tue Jul 21 13:23:45 2015 +0100
+++ b/source/nRF51ServiceDiscovery.cpp	Tue Jul 21 13:23:45 2015 +0100
@@ -154,7 +154,7 @@
     /* Iterate through the previously discovered services cached in services[]. */
     while ((state == SERVICE_DISCOVERY_ACTIVE) && (serviceIndex < numServices)) {
         if ((matchingServiceUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)) ||
-            (matchingServiceUUID == services[serviceIndex].getUUID().getShortUUID())) {
+            (matchingServiceUUID == services[serviceIndex].getUUID())) {
 
             if (serviceCallback && (matchingCharacteristicUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN))) {
                 serviceCallback(&services[serviceIndex]);