bluez_peripheral.util module

async bluez_peripheral.util.get_message_bus()[source]

Gets a system message bus to use for registering services and adverts.

Return type:

MessageBus

async bluez_peripheral.util.is_bluez_available(bus)[source]

Checks if bluez is registered on the system dbus.

Parameters:

bus (MessageBus) – The system dbus to use.

Returns:

True if bluez is found. False otherwise.

Return type:

bool