toio.cube.api.base_class module¶
- class toio.cube.api.base_class.CubeCharacteristic(interface: CubeInterface, uuid: UUID)[source]¶
Bases:
object
- abstract static is_my_data(payload: bytearray) CubeResponse | None [source]¶
If payload is my characteristic response, this function returns CubeResponse object. Otherwise, it returns None.
- Parameters:
payload (GattReadData) – received data from the cube.
- __init__(interface: CubeInterface, uuid: UUID)[source]¶