bluez_peripheral.gatt.base module¶
- class bluez_peripheral.gatt.base.HierarchicalServiceInterface[source]¶
Bases:
BaseServiceInterfaceBase class for a member of a hierarchy of ServiceInterfaces which should be exported and unexported as a group.
- add_child(child)[source]¶
Adds a child service interface.
- Parameters:
child (HierarchicalServiceInterface)
- Return type:
None
- export(bus, *, num=0, path=None)[source]¶
Attempts to export this component and all registered children. Either
numorpathmust be provided.- Parameters:
bus (MessageBus) – The message bus to export this and all children on.
num (int | None) – An optional index of this component within it’s parent.
path (str | None) – An optional absolute path indicating where this component should be exported. If no
pathis specified then this component must have been registered using another componentsHierarchicalServiceInterface.add_child()method.
- Return type:
None
- remove_child(child)[source]¶
Removes a child service interface.
- Parameters:
child (HierarchicalServiceInterface)
- Return type:
None
- class bluez_peripheral.gatt.base.ReadOptionsT¶
The type of options supplied by a dbus ReadValue access.
alias of TypeVar(‘ReadOptionsT’)
- class bluez_peripheral.gatt.base.ServiceAttribute(*args, **kwargs)[source]¶
Bases:
Generic[ReadOptionsT,WriteOptionsT],ABCBase class for service components with a ReadValue and WriteValue dbus interface.
- class bluez_peripheral.gatt.base.WriteOptionsT¶
The type of options supplied by a dbus WriteValue access.
alias of TypeVar(‘WriteOptionsT’)