Diagnostics

The UA_ConnectionGetStatus function block is used to check if a connection is still alive.  The function block UA_Connect will deliver the ConnectionHdl, which is also used for the "read and write" use case. The functionblock UA_ConnectionGetStatus requires this ConnectionHdl as input to deliver the connection status. In case the connection is lost the ServerState Unknown will be returned.

It is recommended to call UA_ConnectionGetStatus periodically but for performance reasons not in every control program cycle.