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.MineAssembly: 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 |
See Also