ant-plus-next / SpeedScanState
Represents the state of a Speed sensor during scanning. Extends the SpeedSensorState to include additional fields specific to scanning, such as RSSI (Received Signal Strength Indicator) and signal threshold.
new SpeedScanState(
deviceId
):SpeedScanState
Creates an instance of the SpeedSensorState.
number
The unique identifier of the sensor device.
const sensorState = new SpeedSensorState(12345);
sensors/speed/speedSensorState.ts:14
optional
BatteryStatus:"New"
|"Good"
|"Ok"
|"Low"
|"Critical"
|"Invalid"
The battery status of the sensor. Can be “New”, “Good”, “Ok”, “Low”, “Critical”, or “Invalid”.
SpeedSensorState
.BatteryStatus
sensors/speed/speedSensorState.ts:95
optional
BatteryStatusBit:number
The battery status bit of the sensor.
SpeedSensorState
.BatteryStatusBit
sensors/speed/speedSensorState.ts:100
optional
BatteryVoltage:number
The battery voltage of the sensor.
SpeedSensorState
.BatteryVoltage
sensors/speed/speedSensorState.ts:88
CalculatedDistance:
undefined
|number
The calculated distance traveled in meters.
SpeedSensorState
.CalculatedDistance
sensors/speed/speedSensorState.ts:40
CalculatedSpeed:
undefined
|number
The calculated speed in meters per second (m/s).
SpeedSensorState
.CalculatedSpeed
sensors/speed/speedSensorState.ts:46
CumulativeSpeedRevolutionCount:
undefined
|number
The cumulative count of speed revolutions since the sensor started.
SpeedSensorState
.CumulativeSpeedRevolutionCount
sensors/speed/speedSensorState.ts:34
DeviceId:
number
The unique identifier of the sensor device.
sensors/speed/speedSensorState.ts:22
optional
HwVersion:number
The hardware version of the sensor.
sensors/speed/speedSensorState.ts:70
optional
ManId:number
The manufacturer ID of the sensor.
sensors/speed/speedSensorState.ts:58
optional
ModelNum:number
The model number of the sensor.
sensors/speed/speedSensorState.ts:82
optional
Motion:boolean
Indicates whether the sensor detects motion.
sensors/speed/speedSensorState.ts:106
optional
OperatingTime:number
The cumulative operating time of the sensor in seconds.
SpeedSensorState
.OperatingTime
sensors/speed/speedSensorState.ts:52
Rssi:
undefined
|number
The received signal strength indicator (RSSI) of the sensor signal.
sensors/speed/speedScanState.ts:13
optional
SerialNumber:number
The serial number of the sensor.
sensors/speed/speedSensorState.ts:64
SpeedEventTime:
undefined
|number
The time of the last speed event in seconds, measured as a fractional part.
SpeedSensorState
.SpeedEventTime
sensors/speed/speedSensorState.ts:28
optional
SwVersion:number
The software version of the sensor.
sensors/speed/speedSensorState.ts:76
Threshold:
undefined
|number
The signal threshold value for the sensor.