src.bluetooth_sig.gatt.characteristics.broadcast_receive_state

Broadcast Receive State characteristic (0x2BC8).

Classes

Name

Description

BIGEncryption

BIG Encryption state values.

BroadcastReceiveStateCharacteristic

Broadcast Receive State characteristic (0x2BC8).

BroadcastReceiveStateData

Parsed data from Broadcast Receive State characteristic.

PASyncState

PA Sync State values.

Module Contents

class src.bluetooth_sig.gatt.characteristics.broadcast_receive_state.BIGEncryption

Bases: enum.IntEnum

BIG Encryption state values.

BAD_CODE = 3
BROADCAST_CODE_REQUIRED = 1
DECRYPTING = 2
NOT_ENCRYPTED = 0
class src.bluetooth_sig.gatt.characteristics.broadcast_receive_state.BroadcastReceiveStateCharacteristic

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

Broadcast Receive State characteristic (0x2BC8).

org.bluetooth.characteristic.broadcast_receive_state

Contains state information about a broadcast audio source being received.

allow_variable_length = True
min_length = 14
class src.bluetooth_sig.gatt.characteristics.broadcast_receive_state.BroadcastReceiveStateData

Bases: msgspec.Struct

Parsed data from Broadcast Receive State characteristic.

Contains the source identification, sync state, encryption state, and any additional subgroup data as raw bytes.

additional_data: bytes = b''
big_encryption: BIGEncryption
broadcast_id: int
pa_sync_state: PASyncState
source_address: bytes
source_address_type: int
source_adv_sid: int
source_id: int
class src.bluetooth_sig.gatt.characteristics.broadcast_receive_state.PASyncState

Bases: enum.IntEnum

PA Sync State values.

FAILED_TO_SYNCHRONIZE = 3
NOT_SYNCHRONIZED = 0
NO_PAST = 4
SYNCHRONIZED = 2
SYNC_INFO_REQUEST = 1