MXIO_Connect_ActiveTag
This function is used to establish a connection between ActiveTag-link and ioLogik device. A handle will be created for other functions.
C/C++
int MXIO_Connect_ActiveTag(UInt32 dwTimeOut, Int32[] hConnection, byte[]szMACAddr, UInt16 wPort, byte[]szPassword);
VISUAL BASIC
Declare Function MXIO_Connect_ActiveTag Lib "MXIO.dll" (ByVal dwTimeOut As Long, hConnection As Long, szMACAddr As Byte, ByVal wPort As Integer, Password As Byte) As Long
Arguments:
dwTimeOut |
Timeout value for establishing a connection between AOPC and ioLogik device. The unit is in milliseconds. |
hConnection |
Handle for the I/O device connection. |
szMACAddr |
MAC address of the connected ioLogik device |
wPort |
TCP port number of the connected ioLogik device. Reserved. Don’t care. |
szPassword |
Password for the connected ioLogik device. Max length 8 bytes Reserved. Don’t care. |
Return Values :
Succeed |
MXIO_OK |
Fail |
Refer to Return Codes. |