Monnit Mine Java
ContentsIndexHome
PreviousUpNext
Sensor.Sensor Constructor (int, eSensorApplication, String, double, int, int)
Syntax
Pascal
C++
Java
PHP
constructor Create(sensorID: Integer; monnitApplication: eSensorApplication; firmwareVersion: String; reportInterval: double; linkInterval: Integer; retryCount: 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  
int retryCount 
how many times the sensor will attempt to reconnect to the gateway 

 

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

 

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