NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

Cannot getCharacteristic() using NimBLEUUID

Open kinsi55 opened this issue 3 years ago • 2 comments

For some reason, when I try to pass a NimBLEUUID to getCharacteristic it cannot get the characteristic (null returned) - Passing a string instead, works.

Passing a UUID to getService however (In my case, NimBLEUUID JK_BMS_SERVICE_UUID(0xFFE0u)), works.

String example: pSvc->getCharacteristic("FFE1") UUID Example:

static const NimBLEUUID JK_BMS_CHARACTERISTIC_UUID(0xFFE1u);
pSvc->getCharacteristic(JK_BMS_CHARACTERISTIC_UUID);

kinsi55 avatar Sep 26 '22 14:09 kinsi55

Hello I'm having a similar issue on an ESP32 S3 connecting to a uECG device. The board gets stuck on pChr = pSvc->getCharacteristic(NimBLEUUID("FC7A850D-C1A5-F61F-0DA7-9995621FBD00")); I'm trying to test out the method you used but since our service uuid is in a diffrent format it doesn't seems to work. Could you give me some help with this please? The code : https://github.com/ultimaterobotics/orbitrack_esp32

ILFforever avatar Jan 13 '23 22:01 ILFforever

Not sure what's going on with that but I'll look into it.

h2zero avatar Jan 20 '23 03:01 h2zero