ant-plus-next / 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.
new EnvironmentSensorState(
deviceId
):EnvironmentSensorState
Creates an instance of the EnvironmentSensorState.
number
The unique identifier of the sensor device.
const sensorState = new EnvironmentSensorState(12345);
sensors/environment/environmentSensorState.ts:15
DeviceId:
number
The unique identifier of the sensor device.
sensors/environment/environmentSensorState.ts:23
EventCount:
undefined
|number
The event count recorded by the sensor.
sensors/environment/environmentSensorState.ts:29
Temperature:
undefined
|number
The temperature measured by the sensor, in degrees Celsius.