ant-plus-next

ant-plus-next v0.3.2


ant-plus-next / CadenceSensorState

Class: 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.

Extended by

Constructors

new CadenceSensorState()

new CadenceSensorState(deviceId): CadenceSensorState

Creates an instance of the CadenceSensorState.

Parameters

deviceId

number

The unique identifier of the sensor device.

Returns

CadenceSensorState

Example

const sensorState = new CadenceSensorState(12345);

Defined in

sensors/cadence/cadenceSensorState.ts:15

Properties

BatteryStatus?

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”.

Defined in

sensors/cadence/cadenceSensorState.ts:90


BatteryStatusBit?

optional BatteryStatusBit: number

The battery status bit of the sensor.

Defined in

sensors/cadence/cadenceSensorState.ts:95


BatteryVoltage?

optional BatteryVoltage: number

The battery voltage of the sensor.

Defined in

sensors/cadence/cadenceSensorState.ts:83


CadenceEventTime

CadenceEventTime: undefined | number

The time of the last cadence event, in seconds.

Defined in

sensors/cadence/cadenceSensorState.ts:29


CalculatedCadence

CalculatedCadence: undefined | number

The calculated cadence in revolutions per minute (RPM).

Defined in

sensors/cadence/cadenceSensorState.ts:41


CumulativeCadenceRevolutionCount

CumulativeCadenceRevolutionCount: undefined | number

The cumulative number of cadence revolutions counted by the sensor.

Defined in

sensors/cadence/cadenceSensorState.ts:35


DeviceId

DeviceId: number

The unique identifier of the sensor device.

Defined in

sensors/cadence/cadenceSensorState.ts:23


HwVersion?

optional HwVersion: number

The hardware version of the sensor.

Defined in

sensors/cadence/cadenceSensorState.ts:65


ManId?

optional ManId: number

The manufacturer ID of the sensor.

Defined in

sensors/cadence/cadenceSensorState.ts:53


ModelNum?

optional ModelNum: number

The model number of the sensor.

Defined in

sensors/cadence/cadenceSensorState.ts:77


Motion?

optional Motion: boolean

Indicates whether the sensor is in motion.

Defined in

sensors/cadence/cadenceSensorState.ts:101


OperatingTime?

optional OperatingTime: number

The cumulative operating time of the sensor in seconds.

Defined in

sensors/cadence/cadenceSensorState.ts:47


SerialNumber?

optional SerialNumber: number

The serial number of the sensor.

Defined in

sensors/cadence/cadenceSensorState.ts:59


SwVersion?

optional SwVersion: number

The software version of the sensor.

Defined in

sensors/cadence/cadenceSensorState.ts:71