@@ -310,7 +310,7 @@ bool BLEDevice::hasService(const char* uuid, int index) const
310310 for (int i = 0 ; i < numServices; i++) {
311311 BLERemoteService* s = device->service (i);
312312
313- if (strcmp (uuid, s->uuid ()) == 0 ) {
313+ if (strcasecmp (uuid, s->uuid ()) == 0 ) {
314314 if (count == index) {
315315 return true ;
316316 }
@@ -352,7 +352,7 @@ BLEService BLEDevice::service(const char * uuid, int index) const
352352 for (int i = 0 ; i < numServices; i++) {
353353 BLERemoteService* s = device->service (i);
354354
355- if (strcmp (uuid, s->uuid ()) == 0 ) {
355+ if (strcasecmp (uuid, s->uuid ()) == 0 ) {
356356 if (count == index) {
357357 return BLEService (s);
358358 }
@@ -405,7 +405,7 @@ bool BLEDevice::hasCharacteristic(const char* uuid, int index) const
405405 BLERemoteCharacteristic* c = s->characteristic (j);
406406
407407
408- if (strcmp (c->uuid (), uuid) == 0 ) {
408+ if (strcasecmp (c->uuid (), uuid) == 0 ) {
409409 if (count == index) {
410410 return true ;
411411 }
@@ -468,7 +468,7 @@ BLECharacteristic BLEDevice::characteristic(const char * uuid, int index) const
468468 for (int j = 0 ; j < numCharacteristics; j++) {
469469 BLERemoteCharacteristic* c = s->characteristic (j);
470470
471- if (strcmp (c->uuid (), uuid) == 0 ) {
471+ if (strcasecmp (c->uuid (), uuid) == 0 ) {
472472 if (count == index) {
473473
474474 return BLECharacteristic (c);
0 commit comments