ns=2;s=DEPRAG Smart/Network/HTTP/REST/RemoveClient
The command terminates the connection of a concrete REST client and removes it from the list of active clients.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bHttpRemoveClient : BOOL;
OutputDataHttpRemoveClient : ST_Int32OutputData;
hrHttpRemoveClient : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpRemoveClient := fbHttpRest.RemoveClient(
bExecute := bHttpRemoveClient,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := 1,
OutputData => OutputDataHttpRemoveClient);
IF hrHttpRemoveClient <> S_FALSE THEN
bHttpRemoveClient := 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".