Characteristics

bless.backends.characteristic defines the base characteristic types and properties shared across backends.

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)