embassy-rs / nrf-softdevice

Apache License 2.0
254 stars 74 forks source link

Add descriptor to a characteristic #222

Closed AliMoal closed 5 months ago

AliMoal commented 5 months ago

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.

alexmoon commented 5 months ago

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.

AliMoal commented 5 months ago

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