ns=2;s=DEPRAG Smart/Network/HTTP/REST/ActiveClients/0/Id
Unique identification of the REST client.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bHttpReadId : BOOL;
OutputHttpReadId : DINT;
hrHttpReadId : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpReadId := fbHttpRest.ReadId(
bExecute := bHttpReadId,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => OutputHttpReadId);
IF hrHttpReadId <> S_FALSE THEN
bHttpReadId := 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".