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 | |
|---|---|---|---|---|---|
![]() |
ioState | AdamTCP_State | |||
![]() |
inDeviceIP | str | The Advantech Adam device IP address to connect to. | ||
![]() |
inTimeout | int | None | 500 - ![]() |
None | Timeout in milliseconds, block if not specified. |
![]() |
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.



