Conversation
This type is used as an OS-independent type to capture information about subscribed central devices for characteristics
NotifySession only pulls address as needed directly from the DBus object. To simplify access for the Bless object, and not force all other backends to function asynchronously, we implement this small capture of the address at start
For harmonized request objects to use in read and write callbacks
Three levels of callback points are defined backend-interface: __on_<verb> backend-server: _on_<verb> user-defined: on_<verb> The backend interface is where the backend such as CoreBluetooth, WinRT, or BlueZ have their respective objects and are consumed and packaged into Bless specific objects and passed to the backend-server At the backend-server, the server then is responsible for routing the callback either to the specific characteristic or to the general user-defined callback The user-defined callback is then able to process the same bless objects and responses as needed.
The characteristics have properties for tracking subscribed central devices. Previously, we were manaully tracking these. Keep it simple and consistent by using the properties already available.
With characteristics managing subscriptions, the base sever can now compupte whether the server has subscriptions using the generic characteristics
These changes allow for defining a GATT tree of services and characteristics as a single dictionary hierarchy that can be set in one swoop. Callbacks for inidividual characteristics may be defined on this dictionary tree.
May remove this if this should be a user-desired feature rather than forcing it
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.