You are here: Symbol Reference > Monnit Namespace > CurrentZeroToTwentyAmpBase Class > CurrentZeroToTwentyAmpBase Methods > CurrentZeroToTwentyAmpBase.UpdateSensorProfileConfig1 Method
CurrentZeroToTwentyAmpBase.UpdateSensorProfileConfig1 Method
CurrentZeroToTwentyAmpBase Class  CurrentZeroToTwentyAmpBase Members  CurrentZeroToTwentyAmpBase Methods  Send Feedback

sets all data for the ProfileConfig1 configuration available on the sensor

Syntax
C++
C#
Visual Basic
void UpdateSensorProfileConfig1(Sensor sens, int measurementsPerTransmission, bool accumulate, int hysteresis, double minimumThreshold, double maximumThreshold, Boolean sendSensorUpdate);
Parameters 
Description 
Sensor sens 
sens the Sensor object to be updated  
int measurementsPerTransmission 
the amount of assessments the sensor where take inbetween heartbeats if during these assesments the value is above or below respective triggering thresholds it will send an aware state message. 
bool accumulate 
With Accumulate off, only the Amp Hours/Watt HOurs consumed during a single heartbeat will be reported. With accumulate on, the energy consumed during the current heartbeat will be added to the energy consumed during the previous heartbeats. 
int hysteresis 
A buffer to prevent the sensor from bouncing between standard operation and aware state when the asseessments are very close to a threashold. for example, if a maximum threashold is set to 90 degrees and a hysteresis of 1 degree, then once the sensor takes an assessment of 90.0 degrees and enters the aware state it will remain in the aware state until the temperature readings drop to 89.0 degrees 
double minimumThreshold 
the minimum temperature the sensor can report before it goes aware 
double maximumThreshold 
the maximum temperature the sensor can report before it goes aware 
Boolean sendSensorUpdate 
a Boolean flag that lets the sensor know if it should send up the new configuration