GXDN: Gurux Developer Network
Connect Method
NamespacesGurux.SNMPGXSNMPConnect()()()
Opens the connection.
Remarks
Protocol, SNMPPort and HostName must be set, before calling the Connect method.
Examples
CopyVBScript
                'This example shows how to start client connection.
'Set Protocol
GXSNMP1.Protocol = GX_NW_UDP  
'Set client port
GXSNMP1.SNMPPort = 1234
'Set client name
GXSNMP1.HostName = "localhost"
'Make connection
GXSNMP1.Connect
'Send data
dim dataToSend
dataToSend = "Hello"
GXSNMP1.Send dataToSend, ""
'The response is received after this through the IGXSNMPEvents.OnReceived method.
See Also

Assembly: Gurux.SNMP (Module: Gurux.SNMP) Version: 5.0.0.1