arpadboda commented on a change in pull request #672: MINIFICPP-1043 - FetchOPC
should support reporting changes only
URL: https://github.com/apache/nifi-minifi-cpp/pull/672#discussion_r342495227
##########
File path: extensions/opc/src/opc.cpp
##########
@@ -220,10 +220,31 @@ NodeData Client::getNodeData(const
UA_ReferenceDescription *ref, const std::stri
nodedata.attributes["NodeID type"] = "numeric";
}
nodedata.attributes["Browsename"] = browsename;
+ // TODO: Base path is always ""
nodedata.attributes["Full path"] = basePath + "/" + browsename;
nodedata.dataTypeID = UA_TYPES_COUNT;
UA_Variant* var = UA_Variant_new();
if(UA_Client_readValueAttribute(client_, ref->nodeId.nodeId, var) ==
UA_STATUSCODE_GOOD && var->type != NULL && var->data != NULL) {
+ // Because the timestamps are eliminated in readValueAttribute for
simplification
Review comment:
Non-layz does the same thing in the background, the 3rd party provides a
simplified API function to hide this.
I don't mind having a bit more complex but single code path in case it has
no performance drawbacks.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services