Monnit Mine Java
ContentsIndexHome
PreviousUpNext
TemperatureBase.UpdateSensorHeartBeat Method
Syntax
Java
public static void UpdateSensorHeartBeat(Sensor sens, double heartBeat, Boolean sendSensorUpdate);
Parameters 
Description 
Sensor sens 
the Sensor object to be updated  
Boolean sendSensorUpdate 
a Boolean flag that lets the sensor know if it should send up the new configuration 
heartbeat 
a double value this is represented in minutes so heartbeat equals 1 that is one minute  

comment this so that users know that heartbeat will be broken down to seconds same with activestate Interval. 

 

sets the ReportInterval as minutes on the sensor object the next time this sensor checks in it will update  

 

Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!