bluez_peripheral.base module

class bluez_peripheral.base.BaseServiceInterface[source]

Bases: ServiceInterface

Base class for bluez_peripheral ServiceInterface implementations.

property export_path: str | None

Returns the message bus path that the ServiceInterface is exported on or None.

class bluez_peripheral.base.HierarchicalServiceInterface[source]

Bases: BaseServiceInterface

Base 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

remove_child(child)[source]

Removes a child service interface.

Parameters:

child (HierarchicalServiceInterface)

Return type:

None

class bluez_peripheral.base.UniquePathMixin[source]

Bases: object

Mixin which calculates the default path for exported components with a _get_default_path.