ABle’s BluezDBus Package

Warning

Please note that the platform backend documentation is highly WIP. We ask you keep the age old adage that it is what is on the inside which matters as you peruse the backend docs. - Bernie

Module contents

Globals defined for the bluezdbus backend

class able.bluezdbus.AdvertisementType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: enum.Enum

Bluez defined advertising types

BROADCAST = 'broadcast'
PERIPHERAL = 'peripheral'
class able.bluezdbus.BluezServiceInterfaces(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: able.bluezdbus.DBusInterface, enum.Enum

Bluez defined service interfaces

ADAPTER_INTERFACE = 'org.bluez.Adapter1'
ADVERTISEMENT_INTERFACE = 'org.bluez.LEAdvertisement1'
ADVERTISING_MANAGER_INTERFACE = 'org.bluez.LEAdvertisingManager1'
BLUEZ_ORG = 'org.bluez'
DEVICE_INTERFACE = 'org.bluez.Device1'
GATT_CHARACTERISTIC_INTERFACE = 'org.bluez.GattCharacteristic1'
GATT_MANAGER_INTERFACE = 'org.bluez.GattManager1'
GATT_SERVICE_INTERFACE = 'org.bluez.GattService1'
class able.bluezdbus.DBusInterface(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: enum.Enum

Base class for interface types

class able.bluezdbus.DbusServiceInterfaces(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]

Bases: able.bluezdbus.DBusInterface, enum.Enum

Dbus defined service interfaces

DBUS_INTERFACE = 'org.freedesktop.DBus'
OBJECT_MANAGER_INTERFACE = 'org.freedesktop.DBus.ObjectManager'
PROPERTIES_INTERFACE = 'org.freedesktop.DBus.Properties'
STATS_MANAGER_INTERFACE = 'org.freedesktop.DBus.Debug.Stats'
able.bluezdbus.get_advertisement_object_path(name, index)[source]

Fetches the path of an advertisement

able.bluezdbus.get_characteristic_path(service_path, index)[source]

Fetches the path of an characteristic

able.bluezdbus.get_service_path(name, index)[source]

Fetches/generates the path of an service