Processing the query
To send a response to a query, a message of type ReadResponse is
used.
A message of type ReadResponse is used to send a response. When
sending, the identifier of the request to which the response occurs is set. In order not to
burden WinCC OA with data transfer, sending the result can be divided into
packets, this setting comes in the request in the desiredChunksize field.
Until the last response packet is sent, set the moreFollows flag to true, and
when sending the last packet, set it to false.
// make response
ReadResponse readResponse;
bool moreFollows = !isLastChunk();
readResponse.set_morefollows(moreFollows);
readResponse.set_answerstoquery(request.queryid());
// add values to response
// addValues(readResponse);
sendReadResponseFunc(readResponse);
