ns=2;s=DEPRAG Smart/Network/HTTP/REST/RemoveAll
The command terminates all active REST connections and removes all REST clients 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
bHttpRemoveAll : BOOL;
OutputDataHttpRemoveAll : ST_VoidOutputData;
hrHttpRemoveAll : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpRemoveAll := fbHttpRest.RemoveAll(
bExecute := bHttpRemoveAll,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
OutputData => OutputDataHttpRemoveAll);
IF hrHttpRemoveAll <> S_FALSE THEN
bHttpRemoveAll := 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".