Monnit Mine Java
ContentsIndexHome
PreviousUpNext
Sensor.Sensor Constructor (int, eSensorApplication, String, double, int)
Syntax
Pascal
C++
Java
PHP
constructor Create(sensorID: Integer; monnitApplication: eSensorApplication; firmwareVersion: String; reportInterval: double; linkInterval: Integer);
Parameters 
Description 
int sensorID 
unique identifier of the sensor  
eSensorApplication monnitApplication 
the sensor type such as temperature or humidity  
String firmwareVersion 
the firmware version of the sensor  
double reportInterval 
the heartbeat of the sensor in minutes while not in aware state  
int linkInterval 
How often the sensor attempts to re-link with a gateway once it goes into link mode. Values below 12 are interpreted as hours. values above 12 are interpreted as minutes. the max value allowed in this field is 250. if a value of 0 is given the sensor will default to a re-link interval of 2 hours 

 

Constructor creates new sensor lets you set the heartbeat and link interval  

 

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