ns=2;s=DEPRAG Smart/Network/HTTP/REST/ActiveClients/0/MaxResponseContentBufferSize
Maximum number of bytes to cache for calls to the REST API.
In addition to the parameters already explained, the following variables must be created / transferred for the implementation in TwinCAT 3:
VAR
bHttpReadMaxResponseContentBufferSize : BOOL;
bHttpWriteMaxResponseContentBufferSize : BOOL;
ReadMaxResponseContentBufferSize : LINT;
WriteMaxResponseContentBufferSize : LINT;
hrHttpMaxResponseContentBufferSize : HRESULT;
fbHttpRest : FB_HttpRest;
END_VAR
hrHttpMaxResponseContentBufferSize := fbHttpRest.ReadMaxResponseContentBufferSize(
bExecute := bHttpReadMaxResponseContentBufferSize,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
Output => ReadMaxResponseContentBufferSize);
IF hrHttpMaxResponseContentBufferSize <> S_FALSE THEN
bHttpReadMaxResponseContentBufferSize := FALSE;
END_IF
hrHttpMaxResponseContentBufferSize := fbHttpRest.WriteMaxResponseContentBufferSize(
bExecute := bHttpWriteMaxResponseContentBufferSize,
ConnectionHandle := depragSmartConnection.ConnectionHandle,
ClientId := '0',
PointerToNodeValue := ADR(WriteMaxResponseContentBufferSize),
SizeOfNodeValue := SIZEOF(WriteMaxResponseContentBufferSize));
IF hrHttpMaxResponseContentBufferSize <> S_FALSE THEN
bHttpWriteMaxResponseContentBufferSize := 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".