-
Notifications
You must be signed in to change notification settings - Fork 39
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
Allow getting and setting all attributes #261
base: main
Are you sure you want to change the base?
Allow getting and setting all attributes #261
Conversation
…es beyond characteristics
…ting-all-attributes
…ng-and-setting-all-attributes
This reverts commit 2793596.
…ting-all-attributes
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.
Looks good to me!
Do we need to assert that a writeable descriptor must also be named? |
I don't think so, because setting the descriptor as writeable only affects whether it can be written by a connected device. |
@@ -69,6 +69,7 @@ impl Primitive for f32 {} | |||
impl Primitive for f64 {} | |||
impl Primitive for BluetoothUuid16 {} // ok as this is just a NewType(u16) | |||
impl Primitive for &'_ str {} | |||
impl Primitive for &'_ [u8] {} |
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.
This impl follows the same flawed logic highlighted in #272 and will require the same fix (assuming I can find one 😅)
Implements generic get and set methods, allowing getting and setting of descriptors and characteristic properties.
This is a draft to get feedback on what you think of the implementation, I think some documentation and examples are needed before merging.
Resolves #155.