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
optionalBatteryStatus:"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
optionalBatteryStatusBit:number
The battery status bit of the sensor.
sensors/cadence/cadenceSensorState.ts:95
optionalBatteryVoltage: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
optionalHwVersion:number
The hardware version of the sensor.
sensors/cadence/cadenceSensorState.ts:65
optionalManId:number
The manufacturer ID of the sensor.
sensors/cadence/cadenceSensorState.ts:53
optionalModelNum:number
The model number of the sensor.
sensors/cadence/cadenceSensorState.ts:77
optionalMotion:boolean
Indicates whether the sensor is in motion.
sensors/cadence/cadenceSensorState.ts:101
optionalOperatingTime:number
The cumulative operating time of the sensor in seconds.
sensors/cadence/cadenceSensorState.ts:47
optionalSerialNumber:number
The serial number of the sensor.
sensors/cadence/cadenceSensorState.ts:59
optionalSwVersion:number
The software version of the sensor.