AdamTCP_Connect


Connects as a client to a remote Advantech Adam device.

Syntax

C++
Python
 
def AdamTCP_Connect(
	state: AdamTCP_State,
	inDeviceIP: str,
	/,
	*,
	inTimeout: int | None = None,
	inKeepAliveTime: int | None = None
)
-> None

Parameters

Name Type Range Default Description
Input will be modified ioState AdamTCP_State
Input value inDeviceIP str The Advantech Adam device IP address to connect to.
Input value inTimeout int | None 500 - None Timeout in milliseconds, block if not specified.
Input value inKeepAliveTime int | None 2000 - None When specified activates Tcp/Ip keep alive on new socket with given idle time.

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.