Monnit Mine Java
ContentsIndexHome
PreviousUpNext
Sensor.Sensor Constructor (int, eSensorApplication, String, double, int, int, int)
Syntax
Pascal
C++
Java
PHP
constructor Create(sensorID: Integer; monnitApplication: eSensorApplication; firmwareVersion: String; reportInterval: double; linkInterval: Integer; retryCount: Integer; recoveryCount: 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  
int recoveryCount 
the value that should be reached before link mode 

 

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

 

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