-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Gatt Presentation Format Descriptor class #18
base: main
Are you sure you want to change the base?
Conversation
Migrating this from ep-oc-mcu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tabs - > spaces.
You can have a packed struct if you want and a static assert that assures the packed size is correct.
We really need some accessible (de)serialisation utils in mbed's BLE
Better if it was accessible to Mbed OS, we're even missing little/big endian extraction. I like the Cordio one https://github.com/ARMmbed/mbed-os/blob/master/connectivity/FEATURE_BLE/libraries/cordio_stack/wsf/include/util/bstream.h |
Would like to have a class/C++ based implementation too. |
ba1355e
to
e8e7082
Compare
This commit introduces a class that simplifies the creation of a Gatt Presentation Format Descriptor. This descriptor is a Bluetooth SIG-specified descriptor type with the short-form UUID `0x2904`. See full official specification here: https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Descriptors/org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
e8e7082
to
891609f
Compare
Took care of the tabs/spaces conversion and cleaned up the dead commented code. |
This commit introduces a class that simplifies the creation of a Gatt Presentation Format Descriptor. This descriptor is a Bluetooth SIG-specified descriptor type with the short-form UUID
0x2904
.See full official specification here: https://www.bluetooth.com/wp-content/uploads/Sitecore-Media-Library/Gatt/Xml/Descriptors/org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml