nRF51ServiceDiscovery should be able to match short AND long UUIDs.
This commit is contained in:
parent
4ec44d75e3
commit
2e68655044
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ nRF51ServiceDiscovery::progressServiceDiscovery(void)
|
|||
/* 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]);
|
||||
|
|
Loading…
Reference in a new issue