BluezDbus Service Module¶
For reference of the implementation of this Gatt service abstraction, see: https://gitlab.com/allthenticate/dependencies/bluez/-/blob/master/doc/gatt-api.txt https://dbus.freedesktop.org/doc/dbus-tutorial.html
- class able.bluezdbus.service.BluezService(service_uuid, is_primary=True)[source]¶
Bases:
able.service.ABleService,dbus_next.service.ServiceInterfaceClass implementation of a BLE GATT Service using Dbus-Next. This class inherits from the ABleService so that it shares the same params for its constructor and supports the same capabilities as the services on other platforms. It also inherits from ServiceInterface so that this class can be exported on the DBus so that Bluez is able to get a proxy for this with the “org.bluez.GattService1” interface.
- Parameters
service_uuid (
UUID) – the uuid for this serviceis_primary (
bool) – whether or not this is a primary service, secondary services are rarely used as they are intended to be used in other services, defaults to True
- Variables
characteristics – a dictionary of uuid string - characteristic pairs, this is used to fetch a characteristic from a service if a reference to the characteristic is lost in your program.
- property path: str¶
Path property, raises an exception if not properly defined
- Return type
str