ns=2;s=DEPRAG Smart/Network/HTTP/REST/ActiveClients/0/Patch
Sends a PATCH 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
bHttpPatch : BOOL;
OutputDataHttpPatch : ST_HttpResultWithStringContentOutputData;
hrHttpPatch : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpPatch := fbHttpRest.Patch(
bExecute := bHttpPatch,
ConnectionHandle:= depragSmartConnection.ConnectionHandle,
sRequestUri := '/testPatch',
sContent := 'TestContent',
sClientId := '0',
OutputData => OutputDataHttpPatch);
IF hrHttpPatch <> S_FALSE THEN
bHttpPatch := 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".