You are here: Symbol Reference > Monnit.Mine Namespace > Sensor Class > Sensor Constructor > Sensor.Sensor Constructor (uint, eSensorApplication, string, double, int, int, int)
Sensor.Sensor Constructor (uint, eSensorApplication, string, double, int, int, int)
Sensor Class  Sensor Members  Sensor Constructor  Send Feedback

Presets these properties 

MonnitApplicationID FirmwareVersion 

You can selectively set these properties ReportInterval (Default: 120) LinkInterval (Default: 120) RetryCount (Default: 2) RecoveryCount (Default: 2) 

Sets all other properties to default values

Syntax
C++
C#
Visual Basic
Sensor(unsigned sensorID, eSensorApplication monnitApplication, string firmwareVersion, double reportInterval = 120, int linkInterval = 120, int retryCount = 2, int recoveryCount = 2);
Parameters 
Description 
uint sensorID 
Numerical identifier of the sensor. 
eSensorApplication monnitApplication 
Type of sensor. 
string firmwareVersion 
Firmware version of sensor. 
double reportInterval 
Interval in minutes sensor communicates. (Default: 120) 
int linkInterval 
Interval in minutes sensor scans for gateway in link mode. (Default: 120) 
int retryCount 
Number of attempts to send a message to a gateway. (Default: 2) 
int recoveryCount 
Number of failed sequences before sensor enters link mode. (Default: 2)