C# Mine
ContentsIndexHome
PreviousUpNext
LN2LevelBase.SensorEdit Method

Allows for the update of the specific type of sensor.

Syntax
C#
public static void SensorEdit(ISensor sens, double? heartBeat, double? awareStateHeartBeat, int? assessmentsPerHeartBeat, double? minimumThreshold, double? maximumThreshold, double? Hysteresis, int? zeroCapacitance, int? hundredCapacitance, int? measurementDelay);
Parameters 
Description 
ISensor sens 
sens the Sensor object to be updated  
double? heartBeat 
How often the sensor communicates with the gateway if no activity recorded. 
double? awareStateHeartBeat 
How often the sensor communicates with the gateway while in Aware State. 
int? assessmentsPerHeartBeat 
How many times between heartbeats a sensor will check its measurements against its thresholds to determine whether it will enter the Aware State. Warning if your sensor firmware is less than 2.5.2.0 Setting assessments greater than one will cause this sensor to not self elect follow a gateway to a new channel. if you reform your gateway you will need to power cycle the sensor for it to link on a new channel. 
double? minimumThreshold 
Any assessments below this value will cause the sensor to enter the Aware State. 
double? maximumThreshold 
Any assessments above this value will cause the sensor to enter the Aware State. 
double? Hysteresis 
A buffer to prevent the sensor from bouncing between Standard Operation and Aware State when the assessments are very close to a threshold. For example, if a Maximum threshold is set to 90 degrees and a Hysteresis of 1 degree, then once the sensor takes an assessment of 90 degrees and enters the Aware State it will remain in the Aware state until the temperature readings drop to 89 degrees similarly, at the minimum threshold the temperature will have to rise a degree above the threshold to return to Standard Operation. 
int? zeroCapacitance 
pico Farads that represents 0% 
int? hundredCapacitance 
pico Farads that represents 100% 
int? measurementDelay 
Required amount of time the sensor needs to actively discharge its capacitance (connect means pin to digital ground) between measurements to ensure there is no biasing from previous measurement 
Copyright (c) 2023. All rights reserved.
What do you think about this topic? Send feedback!