src.bluetooth_sig.gatt.characteristics.volume_control_point

Volume Control Point characteristic (0x2B7E).

Classes

Name

Description

VolumeControlPointCharacteristic

Volume Control Point characteristic (0x2B7E).

VolumeControlPointData

Parsed data from Volume Control Point characteristic.

VolumeControlPointOpCode

Volume Control Point operation codes.

Module Contents

class src.bluetooth_sig.gatt.characteristics.volume_control_point.VolumeControlPointCharacteristic(info: src.bluetooth_sig.types.CharacteristicInfo | None = None, validation: src.bluetooth_sig.gatt.characteristics.characteristic_meta.ValidationConfig | None = None)

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

Volume Control Point characteristic (0x2B7E).

org.bluetooth.characteristic.volume_control_point

Used for controlling volume settings in the Volume Control Service.

allow_variable_length = True
min_length = 2
class src.bluetooth_sig.gatt.characteristics.volume_control_point.VolumeControlPointData

Bases: msgspec.Struct

Parsed data from Volume Control Point characteristic.

The parameter field contains opcode-specific data as raw bytes, or None for opcodes with no additional parameters beyond change_counter.

change_counter: int
op_code: VolumeControlPointOpCode
volume_setting: int | None = None
class src.bluetooth_sig.gatt.characteristics.volume_control_point.VolumeControlPointOpCode

Bases: enum.IntEnum

Volume Control Point operation codes.

MUTE = 6
RELATIVE_VOLUME_DOWN = 0
RELATIVE_VOLUME_UP = 1
SET_ABSOLUTE_VOLUME = 4
UNMUTE = 5
UNMUTE_RELATIVE_VOLUME_DOWN = 2
UNMUTE_RELATIVE_VOLUME_UP = 3