API Reference

Server Base

GATT Types

class bless.backends.attribute.GATTAttributePermissions(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
class bless.backends.characteristic.BlessGATTCharacteristic(*args: Any, **kwargs: Any)

Extension of the BleakGATTCharacteristic to allow for writable values

get_descriptor(specifier: int | str | UUID) BlessGATTDescriptor | None

Get a descriptor by handle or UUID.

abstract async init(service: BlessGATTService)

Initializes the backend-specific characteristic object and stores it in self.obj

property subscribed_centrals: Set[str]

Unique list of subscribed central IDs

abstract property value: bytearray

Value of this characteristic

class bless.backends.characteristic.GATTCharacteristicProperties(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
class bless.backends.descriptor.BlessGATTDescriptor(*args: Any, **kwargs: Any)

Extension of the BleakGATTDescriptor to allow for writable values

abstract async init(characteristic: BlessGATTCharacteristic)

Initializes the backend-specific descriptor object and stores it in self.obj

abstract property value: bytearray

Value of this descriptor

class bless.backends.descriptor.GATTDescriptorProperties(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)