Skip to content

module bluerpc_client.characteristic

BleakGATTCharacteristicBlueRPC.

Global Variables

  • PROPERTY_MAP

class BleakGATTCharacteristicBlueRPC

GATT Characteristic implementation for the BlueRPC backend.

method __init__

__init__(
    obj: 'BLECharacteristic',
    max_write_without_response_size: 'int',
    service_uuid: 'str',
    service_handle: 'int'
)  None

Init a BleakGATTCharacteristicBlueRPC.


property description

Description for this characteristic


property descriptors

List of descriptors for this service.


property handle

Integer handle for this characteristic.


property max_write_without_response_size

Gets the maximum size in bytes that can be used for the data argument of :meth:BleakClient.write_gatt_char() when response=False.

.. warning:: Linux quirk: For BlueZ versions < 5.62, this property will always return 20.

.. versionadded:: 0.16.0


property properties

Properties of this characteristic.


property service_handle

Integer handle of the Service containing this characteristic.


property service_uuid

Uuid of the Service containing this characteristic.


property uuid

Uuid of this characteristic.


method add_descriptor

add_descriptor(descriptor: 'BleakGATTDescriptor')  None

Add a :py:class:~BleakGATTDescriptor to the characteristic.

Should not be used by end user, but rather by bleak itself.


method get_descriptor

get_descriptor(specifier: 'int | str | UUID')  BleakGATTDescriptor | None

Get a descriptor by handle (int) or UUID (str or uuid.UUID).


This file was automatically generated via lazydocs.