ant-plus-next / EnvironmentScanState
Represents the state of an Environment Sensor during scanning. Extends the EnvironmentSensorState to include additional fields specific to scanning, such as RSSI (Received Signal Strength Indicator) and signal threshold.
new EnvironmentScanState(
deviceId
):EnvironmentScanState
Creates an instance of the EnvironmentSensorState.
number
The unique identifier of the sensor device.
const sensorState = new EnvironmentSensorState(12345);
EnvironmentSensorState
.constructor
sensors/environment/environmentSensorState.ts:15
DeviceId:
number
The unique identifier of the sensor device.
EnvironmentSensorState
.DeviceId
sensors/environment/environmentSensorState.ts:23
EventCount:
undefined
|number
The event count recorded by the sensor.
EnvironmentSensorState
.EventCount
sensors/environment/environmentSensorState.ts:29
Rssi:
undefined
|number
The received signal strength indicator (RSSI) of the sensor signal. Indicates the strength of the received signal from the environment sensor.
sensors/environment/environmentScanState.ts:14
Temperature:
undefined
|number
The temperature measured by the sensor, in degrees Celsius.
EnvironmentSensorState
.Temperature
sensors/environment/environmentSensorState.ts:35
Threshold:
undefined
|number
The signal threshold value for the sensor. Represents the minimum signal strength required for a reliable connection.