ns=2;s=DEPRAG Smart/Network/HTTP/REST/ActiveClients/0/Put
Sends a PUT command to a URL.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bHttpPut : BOOL;
OutputDataHttpPut : ST_HttpResultWithStringContentOutputData;
hrHttpPut : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpPut := fbHttpRest.Put(
bExecute := bHttpPut,
ConnectionHandle:= depragSmartConnection.ConnectionHandle,
sRequestUri := '/testPut',
sContent := 'TestContent',
sClientId := '0',
OutputData => OutputDataHttpPut);
IF hrHttpPut <> S_FALSE THEN
bHttpPut := 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".