src.bluetooth_sig.gatt.characteristics.object_action_control_point

Object Action Control Point characteristic implementation.

Classes

Name

Description

OACPData

Parsed data from Object Action Control Point characteristic.

OACPOpcode

Object Action Control Point opcodes per OTS specification.

OACPResultCode

OACP response result codes per OTS specification.

ObjectActionControlPointCharacteristic

Object Action Control Point characteristic (0x2AC5).

Module Contents

class src.bluetooth_sig.gatt.characteristics.object_action_control_point.OACPData

Bases: msgspec.Struct

Parsed data from Object Action Control Point characteristic.

opcode

The OACP opcode.

parameters

Raw parameter bytes (opcode-dependent).

opcode: OACPOpcode
parameters: bytes = b''
class src.bluetooth_sig.gatt.characteristics.object_action_control_point.OACPOpcode

Bases: enum.IntEnum

Object Action Control Point opcodes per OTS specification.

ABORT = 7
CALCULATE_CHECKSUM = 3
CREATE = 1
DELETE = 2
EXECUTE = 4
READ = 5
RESPONSE = 96
WRITE = 6
class src.bluetooth_sig.gatt.characteristics.object_action_control_point.OACPResultCode

Bases: enum.IntEnum

OACP response result codes per OTS specification.

CHANNEL_UNAVAILABLE = 6
INSUFFICIENT_RESOURCES = 4
INVALID_OBJECT = 5
INVALID_PARAMETER = 3
OBJECT_LOCKED = 9
OPCODE_NOT_SUPPORTED = 2
OPERATION_FAILED = 10
PROCEDURE_NOT_PERMITTED = 8
SUCCESS = 1
UNSUPPORTED_TYPE = 7
class src.bluetooth_sig.gatt.characteristics.object_action_control_point.ObjectActionControlPointCharacteristic

Bases: src.bluetooth_sig.gatt.characteristics.base.BaseCharacteristic[OACPData]

Object Action Control Point characteristic (0x2AC5).

org.bluetooth.characteristic.object_action_control_point

Control point for object actions in the Object Transfer Service (OTS). Opcodes include Create, Delete, Calculate Checksum, Execute, Read, Write, Abort, and Response.

allow_variable_length: bool = True
min_length: int = 1