Change DiscoveredCharacteristic API to return long or short UUIDs.

master
Andrew Fernandes 2015-07-10 11:51:09 -04:00
parent b743df2a51
commit 4ec44d75e3
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ nRF51ServiceDiscovery::progressCharacteristicDiscovery(void)
/* Iterate through the previously discovered characteristics cached in characteristics[]. */
while ((state == CHARACTERISTIC_DISCOVERY_ACTIVE) && (characteristicIndex < numCharacteristics)) {
if ((matchingCharacteristicUUID == UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)) ||
((matchingCharacteristicUUID == characteristics[characteristicIndex].getShortUUID()) &&
((matchingCharacteristicUUID == characteristics[characteristicIndex].getUUID()) &&
(matchingServiceUUID != UUID::ShortUUIDBytes_t(BLE_UUID_UNKNOWN)))) {
if (characteristicCallback) {
characteristicCallback(&characteristics[characteristicIndex]);