bluez_peripheral.base module

class bluez_peripheral.base.BaseServiceInterface[source]

Bases: ServiceInterface

Base class for bluez_peripheral ServiceInterface implementations.

export(bus, *, path=None)[source]

Export this service interface. If no path is provided a unique value is generated based on _DEFAULT_PATH_PREFIX and a type scoped export counter.

Parameters:
Return type:

None

property export_path: str | None

The dbus path on which this interface is currently exported.

property is_exported: bool

Whether this service interface is exported and visible to dbus clients.

unexport()[source]

Unexport this service interface.

Return type:

None