embassy-rs/nrf-softdevice

Add descriptor to a characteristic

AliMoal opened this issue · 2 comments

How to add a descriptor (for example UUID: 0x2904) to a characteristic?
I used add_descriptor function but it returns: Raw(Forbidden) and the program panics.
If any example was provided, it would be more helpful.
Thanks.

Per Nordic's documentation certain UUID values are reserved to the softdevice. The characteristic presentation format is one of those. Instead, you need to add the presentation format definition to the characteristic metadata. However, that is not currently implemented in our Metadata struct.

PRs are welcome.

Thank you for your information.
I'll try it.