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

Namespace: Monnit.Mine
Assembly: MonnitMineAPI (in MonnitMineAPI.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public Sensor(
	uint sensorID,
	eSensorApplication monnitApplication,
	string firmwareVersion,
	double reportInterval = 120,
	int linkInterval = 120,
	int retryCount = 2,
	int recoveryCount = 2
)
Visual Basic
Public Sub New ( 
	sensorID As UInteger,
	monnitApplication As eSensorApplication,
	firmwareVersion As String,
	Optional reportInterval As Double = 120,
	Optional linkInterval As Integer = 120,
	Optional retryCount As Integer = 2,
	Optional recoveryCount As Integer = 2
)
Visual C++
public:
Sensor(
	unsigned int sensorID, 
	eSensorApplication monnitApplication, 
	String^ firmwareVersion, 
	double reportInterval = 120, 
	int linkInterval = 120, 
	int retryCount = 2, 
	int recoveryCount = 2
)
F#
new : 
        sensorID : uint32 * 
        monnitApplication : eSensorApplication * 
        firmwareVersion : string * 
        ?reportInterval : float * 
        ?linkInterval : int * 
        ?retryCount : int * 
        ?recoveryCount : int 
(* Defaults:
        let _reportInterval = defaultArg reportInterval 120
        let _linkInterval = defaultArg linkInterval 120
        let _retryCount = defaultArg retryCount 2
        let _recoveryCount = defaultArg recoveryCount 2
*)
-> Sensor

Parameters

sensorID
Type: System..::..UInt32
Numerical identifier of the sensor.
monnitApplication
Type: Monnit.Mine..::..eSensorApplication
Type of sensor.
firmwareVersion
Type: System..::..String
Firmware version of sensor.
reportInterval (Optional)
Type: System..::..Double
Interval in minutes sensor communicates. (Default: 120)
linkInterval (Optional)
Type: System..::..Int32
Interval in minutes sensor scans for gateway in link mode. (Default: 120)
retryCount (Optional)
Type: System..::..Int32
Number of attempts to send a message to a gateway. (Default: 2)
recoveryCount (Optional)
Type: System..::..Int32
Number of failed sequences before sensor enters link mode. (Default: 2)

See Also