-
Notifications
You must be signed in to change notification settings - Fork 44
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
Allow getting and setting all attributes #261
Conversation
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. |
host/src/types/gatt_traits.rs
Outdated
@@ -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 😅)
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.
Ok, we now have a solution for this so I can hopefully close this off soon.
…es beyond characteristics
This reverts commit 2793596.
7a05271
to
b699d7e
Compare
This reverts commit 4deec22.
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.
No objection from me, thanks! Needs some fmt'ing.
/test |
/test |
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.