src.bluetooth_sig.gatt.characteristics.ln_control_point

LN Control Point characteristic implementation.

Classes

Name

Description

LNControlPointCharacteristic

LN Control Point characteristic.

LNControlPointData

Parsed data from LN Control Point characteristic.

LNControlPointOpCode

LN Control Point operation codes as per Bluetooth SIG specification.

LNControlPointResponseValue

LN Control Point response values as per Bluetooth SIG specification.

Module Contents

class src.bluetooth_sig.gatt.characteristics.ln_control_point.LNControlPointCharacteristic

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

LN Control Point characteristic.

Used to enable device-specific procedures related to the exchange of location and navigation information.

allow_variable_length: bool = True
max_length = 18
min_length = 1
class src.bluetooth_sig.gatt.characteristics.ln_control_point.LNControlPointData

Bases: msgspec.Struct

Parsed data from LN Control Point characteristic.

content_mask: int | None = None
cumulative_value: int | None = None
elevation: float | None = None
fix_rate: int | None = None
navigation_control_value: int | None = None
op_code: LNControlPointOpCode
request_op_code: LNControlPointOpCode | None = None
response_parameter: int | str | datetime.datetime | bytearray | None = None
response_value: LNControlPointResponseValue | None = None
route_name: str | None = None
route_number: int | None = None
class src.bluetooth_sig.gatt.characteristics.ln_control_point.LNControlPointOpCode

Bases: enum.IntEnum

LN Control Point operation codes as per Bluetooth SIG specification.

MASK_LOCATION_AND_SPEED_CHARACTERISTIC_CONTENT = 2
NAVIGATION_CONTROL = 3
REQUEST_NAME_OF_ROUTE = 5
REQUEST_NUMBER_OF_ROUTES = 4
RESPONSE_CODE = 32
SELECT_ROUTE = 6
SET_CUMULATIVE_VALUE = 1
SET_ELEVATION = 8
SET_FIX_RATE = 7
class src.bluetooth_sig.gatt.characteristics.ln_control_point.LNControlPointResponseValue

Bases: enum.IntEnum

LN Control Point response values as per Bluetooth SIG specification.

INVALID_OPERAND = 3
OPERATION_FAILED = 4
OP_CODE_NOT_SUPPORTED = 2
SUCCESS = 1