src.bluetooth_sig.gatt.services.binary_sensor

BinarySensor Service implementation.

Classes

Name

Description

BinarySensorService

Binary Sensor Service implementation (0x183B).

Module Contents

class src.bluetooth_sig.gatt.services.binary_sensor.BinarySensorService(info: src.bluetooth_sig.types.ServiceInfo | None = None, validation: ServiceValidationConfig | None = None)

Bases: src.bluetooth_sig.gatt.services.base.BaseGattService

Binary Sensor Service implementation (0x183B).

Enables devices with one or more binary (open/closed, on/off) sensors to report sensor state to a client device. Commands are received on the BSS Control Point and responses/events are indicated on the BSS Response characteristic.

service_characteristics: ClassVar[dict[src.bluetooth_sig.gatt.characteristics.registry.CharacteristicName, bool]]