Adafruit Feather nRF52 with Flutter: Could not locate CCCD Descriptor

I'm trying to set up notify so that my BLE with sensor can send data to my android phone. My embedded code is based off of the example for Custom HRM on Adafruit's site (Custom: HRM | Bluefruit nRF52 Feather Learning Guide | Adafruit Learning System ) and the code for flutter is based off flutter blue's example

await characteristic.setNotifyValue(true);
characteristic.value.listen((value) {
    print(value);
});

I keep getting this error:

Unhandled Exception: PlatformException(set_notification_error, could not locate CCCD descriptor for characteristic: 00002a24-0000-1000-8000-00805f9b34fb, null, null)

I tested my flutter code for every available characteristic in case my ID is wrong (it's not though). I also tried printing out all descriptors for that characteristic and found out there's none.

In the example adafruit code, we don't need to add any descriptors, we only need to do

characteristic.setProperties(CHR_PROPS_NOTIFY); 
characteristic.setPermission(SECMODE_OPEN, SECMODE_NO_ACCESS);

Am I missing something? How can I fix this?

Welcome @student1084

your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the Installation & Troubleshooting category.

Solved: It was a hardware issue where UUIDs weren't getting set correctly. Testing on a new Feather nRF52, everything worked well.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.