ns=2;s=DEPRAG Smart/Network/HTTP/REST/ActiveClients/0/ConnectionTimeoutInMilliseconds
Maximum time in milliseconds for establishing a connection to the REST API. If a connection cannot be established within the time interval, an error is issued.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bHttpReadConnectionTimeoutInMilliseconds : BOOL;
OutputHttpReadConnectionTimeoutInMilliseconds : DINT;
hrHttpReadConnectionTimeoutInMilliseconds : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpReadConnectionTimeoutInMilliseconds := fbHttpRest.ReadConnectionTimeoutInMilliseconds(
bExecute := bHttpReadConnectionTimeoutInMilliseconds,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => OutputHttpReadConnectionTimeoutInMilliseconds);
IF hrHttpReadConnectionTimeoutInMilliseconds <> S_FALSE THEN
bHttpReadConnectionTimeoutInMilliseconds := FALSE;
END_IF
For examples and explanations regarding the calls of nodes via Siemens TIA Portal please refer to the sub-menu "Siemens TIA Portal" in section "Getting Started".