ant-plus-next / CadenceScanState
Represents the state of a Cadence Sensor during scanning. Extends the CadenceSensorState to include additional fields specific to scanning, such as RSSI (Received Signal Strength Indicator) and signal threshold.
new CadenceScanState(
deviceId):CadenceScanState
Creates an instance of the CadenceSensorState.
number
The unique identifier of the sensor device.
const sensorState = new CadenceSensorState(12345);
CadenceSensorState.constructor
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”.
CadenceSensorState.BatteryStatus
sensors/cadence/cadenceSensorState.ts:90
optionalBatteryStatusBit:number
The battery status bit of the sensor.
CadenceSensorState.BatteryStatusBit
sensors/cadence/cadenceSensorState.ts:95
optionalBatteryVoltage:number
The battery voltage of the sensor.
CadenceSensorState.BatteryVoltage
sensors/cadence/cadenceSensorState.ts:83
CadenceEventTime:
undefined|number
The time of the last cadence event, in seconds.
CadenceSensorState.CadenceEventTime
sensors/cadence/cadenceSensorState.ts:29
CalculatedCadence:
undefined|number
The calculated cadence in revolutions per minute (RPM).
CadenceSensorState.CalculatedCadence
sensors/cadence/cadenceSensorState.ts:41
CumulativeCadenceRevolutionCount:
undefined|number
The cumulative number of cadence revolutions counted by the sensor.
CadenceSensorState.CumulativeCadenceRevolutionCount
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.
CadenceSensorState.OperatingTime
sensors/cadence/cadenceSensorState.ts:47
Rssi:
undefined|number
The received signal strength indicator (RSSI) of the sensor signal. Indicates the strength of the received signal from the cadence sensor.
sensors/cadence/cadenceScanState.ts:14
optionalSerialNumber:number
The serial number of the sensor.
CadenceSensorState.SerialNumber
sensors/cadence/cadenceSensorState.ts:59
optionalSwVersion:number
The software version of the sensor.
sensors/cadence/cadenceSensorState.ts:71
Threshold:
undefined|number
The signal threshold value for the sensor. Represents the minimum signal strength required for a reliable connection.