ant-plus-next / CadenceSensorState
Represents the state of a Cadence Sensor. This class holds the data fields associated with the state of a cadence sensor, including event times, revolution counts, and device information.
new CadenceSensorState(
deviceId
):CadenceSensorState
Creates an instance of the CadenceSensorState.
number
The unique identifier of the sensor device.
const sensorState = new CadenceSensorState(12345);
sensors/cadence/cadenceSensorState.ts:15
optional
BatteryStatus:"New"
|"Good"
|"Ok"
|"Low"
|"Critical"
|"Invalid"
The battery status of the sensor. Can be one of the following: “New”, “Good”, “Ok”, “Low”, “Critical”, “Invalid”.
sensors/cadence/cadenceSensorState.ts:90
optional
BatteryStatusBit:number
The battery status bit of the sensor.
sensors/cadence/cadenceSensorState.ts:95
optional
BatteryVoltage:number
The battery voltage of the sensor.
sensors/cadence/cadenceSensorState.ts:83
CadenceEventTime:
undefined
|number
The time of the last cadence event, in seconds.
sensors/cadence/cadenceSensorState.ts:29
CalculatedCadence:
undefined
|number
The calculated cadence in revolutions per minute (RPM).
sensors/cadence/cadenceSensorState.ts:41
CumulativeCadenceRevolutionCount:
undefined
|number
The cumulative number of cadence revolutions counted by the sensor.
sensors/cadence/cadenceSensorState.ts:35
DeviceId:
number
The unique identifier of the sensor device.
sensors/cadence/cadenceSensorState.ts:23
optional
HwVersion:number
The hardware version of the sensor.
sensors/cadence/cadenceSensorState.ts:65
optional
ManId:number
The manufacturer ID of the sensor.
sensors/cadence/cadenceSensorState.ts:53
optional
ModelNum:number
The model number of the sensor.
sensors/cadence/cadenceSensorState.ts:77
optional
Motion:boolean
Indicates whether the sensor is in motion.
sensors/cadence/cadenceSensorState.ts:101
optional
OperatingTime:number
The cumulative operating time of the sensor in seconds.
sensors/cadence/cadenceSensorState.ts:47
optional
SerialNumber:number
The serial number of the sensor.
sensors/cadence/cadenceSensorState.ts:59
optional
SwVersion:number
The software version of the sensor.