Presets these properties GatewayType GatewayFirmwareVersion RadioFirmwareVersion Host Port You can selectively set these properties ReportInterval (Default: 5) ObserveAware (Default: true) PollInterval (Default: 0 Not Enabled) HasUrgentTraffic (Default: false) GatewayIP (Default: "0.0.0.0" Use DHCP) GatewaySubnet (Default: "0.0.0.0") DefaultRouterIP (Default: "0.0.0.0") GatewayDNS (Default: "0.0.0.0") SecondaryDNS (Default: "0.0.0.0") 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 Gateway(
	uint gatewayID,
	eGatewayType gatewayType,
	string gatewayFirmwareVersion,
	string radioFirmwareVersion,
	string hostAddress,
	int port,
	double reportInterval = 5,
	bool observeAware = true,
	double pollInterval = 0,
	bool hasUrgentTraffic = false,
	string gatewayIP = "0.0.0.0",
	string gatewaySubnet = "0.0.0.0",
	string defaultRouterIP = "0.0.0.0",
	string gatewayDNS = "0.0.0.0",
	string secondaryDNS = "0.0.0.0"
)
Visual Basic
Public Sub New ( 
	gatewayID As UInteger,
	gatewayType As eGatewayType,
	gatewayFirmwareVersion As String,
	radioFirmwareVersion As String,
	hostAddress As String,
	port As Integer,
	Optional reportInterval As Double = 5,
	Optional observeAware As Boolean = true,
	Optional pollInterval As Double = 0,
	Optional hasUrgentTraffic As Boolean = false,
	Optional gatewayIP As String = "0.0.0.0",
	Optional gatewaySubnet As String = "0.0.0.0",
	Optional defaultRouterIP As String = "0.0.0.0",
	Optional gatewayDNS As String = "0.0.0.0",
	Optional secondaryDNS As String = "0.0.0.0"
)
Visual C++
public:
Gateway(
	unsigned int gatewayID, 
	eGatewayType gatewayType, 
	String^ gatewayFirmwareVersion, 
	String^ radioFirmwareVersion, 
	String^ hostAddress, 
	int port, 
	double reportInterval = 5, 
	bool observeAware = true, 
	double pollInterval = 0, 
	bool hasUrgentTraffic = false, 
	String^ gatewayIP = L"0.0.0.0", 
	String^ gatewaySubnet = L"0.0.0.0", 
	String^ defaultRouterIP = L"0.0.0.0", 
	String^ gatewayDNS = L"0.0.0.0", 
	String^ secondaryDNS = L"0.0.0.0"
)
F#
new : 
        gatewayID : uint32 * 
        gatewayType : eGatewayType * 
        gatewayFirmwareVersion : string * 
        radioFirmwareVersion : string * 
        hostAddress : string * 
        port : int * 
        ?reportInterval : float * 
        ?observeAware : bool * 
        ?pollInterval : float * 
        ?hasUrgentTraffic : bool * 
        ?gatewayIP : string * 
        ?gatewaySubnet : string * 
        ?defaultRouterIP : string * 
        ?gatewayDNS : string * 
        ?secondaryDNS : string 
(* Defaults:
        let _reportInterval = defaultArg reportInterval 5
        let _observeAware = defaultArg observeAware true
        let _pollInterval = defaultArg pollInterval 0
        let _hasUrgentTraffic = defaultArg hasUrgentTraffic false
        let _gatewayIP = defaultArg gatewayIP "0.0.0.0"
        let _gatewaySubnet = defaultArg gatewaySubnet "0.0.0.0"
        let _defaultRouterIP = defaultArg defaultRouterIP "0.0.0.0"
        let _gatewayDNS = defaultArg gatewayDNS "0.0.0.0"
        let _secondaryDNS = defaultArg secondaryDNS "0.0.0.0"
*)
-> Gateway

Parameters

gatewayID
Type: System..::..UInt32
Numerical identifier of the gateway.
gatewayType
Type: Monnit.Mine..::..eGatewayType
Type of gateway.
gatewayFirmwareVersion
Type: System..::..String
Gateway firmware version.
radioFirmwareVersion
Type: System..::..String
Radio firmware version.
hostAddress
Type: System..::..String
IP Address or DNS resolvable host name address the gateway uses to communicate to the server.
port
Type: System..::..Int32
Port the gateway will use to communicate to the server.
reportInterval (Optional)
Type: System..::..Double
Interval in minutes gateway communicates. (Default: 5)
observeAware (Optional)
Type: System..::..Boolean
Triggers communication on aware messages from sensors. (Default: true)
pollInterval (Optional)
Type: System..::..Double
Interval the gateway polls the server to identify if urgent messages need to be communicated to gateway. (Default: 0 Not Enabled)
hasUrgentTraffic (Optional)
Type: System..::..Boolean
Indicates if the server currently has urgent traffic for the gateway. (Default: false)
gatewayIP (Optional)
Type: System..::..String
IP the gateway will use on the local area network. (Default: "0.0.0.0" Use DHCP)
gatewaySubnet (Optional)
Type: System..::..String
Subnet the gateway will use to communication on the local area network. (Default: "0.0.0.0")
defaultRouterIP (Optional)
Type: System..::..String
Default router the gateway will send information to if it needs to communicate outside the local area network. (Default: "0.0.0.0")
gatewayDNS (Optional)
Type: System..::..String
DNS server used to lookup server host names. (Not used is host is configured with IP Address.) (Default: "0.0.0.0")
secondaryDNS (Optional)
Type: System..::..String
Secondary DNS server used to lookup host names if Primary DNS server is not available. (Default: "0.0.0.0")

See Also