src.bluetooth_sig.gatt.characteristics.bss_response

BSS Response characteristic (0x2B2C).

Response characteristic for the Binary Sensor Service.

The BSS protocol uses Split Header + Payload format. Responses and unsolicited events are indicated via this characteristic.

References

Bluetooth SIG Binary Sensor Service 1.0, Sections 3.2 and 4

Classes

Name

Description

BSSResponseCharacteristic

BSS Response characteristic (0x2B2C).

BSSResponseData

Parsed data from BSS Response.

Module Contents

class src.bluetooth_sig.gatt.characteristics.bss_response.BSSResponseCharacteristic

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

BSS Response characteristic (0x2B2C).

org.bluetooth.characteristic.bss_response

Sends responses and unsolicited events from the Binary Sensor Service using Split Header + Payload format.

Response message IDs are defined in BSSMessageID: GET_SENSOR_STATUS_RESPONSE, SETTING_SENSOR_RESPONSE, and SENSOR_STATUS_EVENT.

allow_variable_length = True
max_length = 20
min_length = 1
class src.bluetooth_sig.gatt.characteristics.bss_response.BSSResponseData

Bases: msgspec.Struct

Parsed data from BSS Response.

split_header

Parsed Split Header fields.

payload

Raw payload bytes (message content). Empty if none.

payload: bytes = b''
split_header: src.bluetooth_sig.types.bss.SplitHeader