-
Notifications
You must be signed in to change notification settings - Fork 27
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
Add a way to validate/interact with a value before it gets put in AttributeTable #152
Comments
I think in general it would be nice to be able to handle the actual values read and written better. For example, manually hook into reads and writes and controlling which value is sent or stored. |
@petekubiak has been looking at some of this, we're talking about some kind of middleware layer with callbacks essentially right? |
Yes, something like that seems like a good idea |
#151 is now up for review - I would be interested to hear your thoughts on the approach |
@Erik1000 are you happy for this issue to be closed? |
Yes |
Currently, you can only passively monitor the GattEvent. This is problematic in the case of
GattEvent::Write
because there is no way you can validate or inspect the value of the write event before it gets put into the AttributeTable and can then be read again.It would be nice to hook into the write event to validate the value and (in case of error) discard it.
related to #151
The text was updated successfully, but these errors were encountered: