ant-plus-next

ant-plus-next v0.3.2


ant-plus-next / EnvironmentSensorState

Class: EnvironmentSensorState

Represents the state of an Environment Sensor. This class holds the data fields associated with the state of an environment sensor, such as the event count and temperature.

Extended by

Constructors

new EnvironmentSensorState()

new EnvironmentSensorState(deviceId): EnvironmentSensorState

Creates an instance of the EnvironmentSensorState.

Parameters

deviceId

number

The unique identifier of the sensor device.

Returns

EnvironmentSensorState

Example

const sensorState = new EnvironmentSensorState(12345);

Defined in

sensors/environment/environmentSensorState.ts:15

Properties

DeviceId

DeviceId: number

The unique identifier of the sensor device.

Defined in

sensors/environment/environmentSensorState.ts:23


EventCount

EventCount: undefined | number

The event count recorded by the sensor.

Defined in

sensors/environment/environmentSensorState.ts:29


Temperature

Temperature: undefined | number

The temperature measured by the sensor, in degrees Celsius.

Defined in

sensors/environment/environmentSensorState.ts:35