@@ -310,7 +310,7 @@ bool BLEDevice::hasService(const char* uuid, int index) const
310
310
for (int i = 0 ; i < numServices; i++) {
311
311
BLERemoteService* s = device->service (i);
312
312
313
- if (strcmp (uuid, s->uuid ()) == 0 ) {
313
+ if (strcasecmp (uuid, s->uuid ()) == 0 ) {
314
314
if (count == index ) {
315
315
return true ;
316
316
}
@@ -352,7 +352,7 @@ BLEService BLEDevice::service(const char * uuid, int index) const
352
352
for (int i = 0 ; i < numServices; i++) {
353
353
BLERemoteService* s = device->service (i);
354
354
355
- if (strcmp (uuid, s->uuid ()) == 0 ) {
355
+ if (strcasecmp (uuid, s->uuid ()) == 0 ) {
356
356
if (count == index ) {
357
357
return BLEService (s);
358
358
}
@@ -405,7 +405,7 @@ bool BLEDevice::hasCharacteristic(const char* uuid, int index) const
405
405
BLERemoteCharacteristic* c = s->characteristic (j);
406
406
407
407
408
- if (strcmp (c->uuid (), uuid) == 0 ) {
408
+ if (strcasecmp (c->uuid (), uuid) == 0 ) {
409
409
if (count == index ) {
410
410
return true ;
411
411
}
@@ -468,7 +468,7 @@ BLECharacteristic BLEDevice::characteristic(const char * uuid, int index) const
468
468
for (int j = 0 ; j < numCharacteristics; j++) {
469
469
BLERemoteCharacteristic* c = s->characteristic (j);
470
470
471
- if (strcmp (c->uuid (), uuid) == 0 ) {
471
+ if (strcasecmp (c->uuid (), uuid) == 0 ) {
472
472
if (count == index ) {
473
473
474
474
return BLECharacteristic (c);
0 commit comments