src.bluetooth_sig.gatt.characteristics.ln_feature

LN Feature characteristic implementation.

Classes

Name

Description

LNFeatureCharacteristic

LN Feature characteristic.

LNFeatureData

Parsed data from LN Feature characteristic.

LNFeatures

LN Feature flags as per Bluetooth SIG specification.

Module Contents

class src.bluetooth_sig.gatt.characteristics.ln_feature.LNFeatureCharacteristic

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

LN Feature characteristic.

Used to represent the supported features of a location and navigation sensor.

min_length = 4
class src.bluetooth_sig.gatt.characteristics.ln_feature.LNFeatureData

Bases: msgspec.Struct

Parsed data from LN Feature characteristic.

elevation_setting_supported: bool
elevation_supported: bool
estimated_horizontal_position_error_supported: bool
estimated_time_of_arrival_supported: bool
estimated_vertical_position_error_supported: bool
features_bitmap: int
fix_rate_setting_supported: bool
heading_supported: bool
horizontal_dilution_of_precision_supported: bool
instantaneous_speed_supported: bool
location_and_speed_characteristic_content_masking_supported: bool
location_supported: bool
number_of_beacons_in_solution_supported: bool
number_of_beacons_in_view_supported: bool
position_status_supported: bool
remaining_distance_supported: bool
remaining_vertical_distance_supported: bool
rolling_time_supported: bool
time_to_first_fix_supported: bool
total_distance_supported: bool
utc_time_supported: bool
vertical_dilution_of_precision_supported: bool
class src.bluetooth_sig.gatt.characteristics.ln_feature.LNFeatures

Bases: enum.IntFlag

LN Feature flags as per Bluetooth SIG specification.

ELEVATION_SETTING_SUPPORTED = 524288
ELEVATION_SUPPORTED = 8
ESTIMATED_HORIZONTAL_POSITION_ERROR_SUPPORTED = 8192
ESTIMATED_TIME_OF_ARRIVAL_SUPPORTED = 512
ESTIMATED_VERTICAL_POSITION_ERROR_SUPPORTED = 16384
FIX_RATE_SETTING_SUPPORTED = 262144
HEADING_SUPPORTED = 16
HORIZONTAL_DILUTION_OF_PRECISION_SUPPORTED = 32768
INSTANTANEOUS_SPEED_SUPPORTED = 1
LOCATION_AND_SPEED_CHARACTERISTIC_CONTENT_MASKING_SUPPORTED = 131072
LOCATION_SUPPORTED = 4
NUMBER_OF_BEACONS_IN_SOLUTION_SUPPORTED = 1024
NUMBER_OF_BEACONS_IN_VIEW_SUPPORTED = 2048
POSITION_STATUS_SUPPORTED = 1048576
REMAINING_DISTANCE_SUPPORTED = 128
REMAINING_VERTICAL_DISTANCE_SUPPORTED = 256
ROLLING_TIME_SUPPORTED = 32
TIME_TO_FIRST_FIX_SUPPORTED = 4096
TOTAL_DISTANCE_SUPPORTED = 2
UTC_TIME_SUPPORTED = 64
VERTICAL_DILUTION_OF_PRECISION_SUPPORTED = 65536