API Reference
Advertisement
- class bless.backends.advertisement.BlessAdvertisementData(local_name: str | None = None, service_uuids: List[str] | None = None, manufacturer_data: Dict[int, bytes] | None = None, service_data: Dict[str, bytes] | None = None, is_connectable: bool | None = None, is_discoverable: bool | None = None, tx_power: int | None = None)
Generic advertisement data for BLE backends.
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)