最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

opc ua - open62541 UA_Server_addNode_begin "outNewNodeId" parameter value - Stack Overflow

programmeradmin2浏览0评论

Actual server node ID does not appear to match "outNewNodeId" returned by UA_Server_addNode_begin

Code generated by the XML nodeset compiler calls UA_Server_addNode_begin and the "outNewNodeId" parameter returns a numeric ID that matches the ID for each variable in the nodeset which in this particular case are values less than 20. However at runtime the connected client “sees” numeric Node ID values that are > 50000 after adding the parent object type with UA_Server_addObjectNode.

If this is not a bug then what needs to be done in the server code to get the actual Node IDs for each variable so that they can be updated with UA_Server_writeValue or other function at runtime?

Used CMake options: UA_ENABLE_AMALGAMATION

Investigation: Replaced NULL value with a variable for "outNewNodeId" reference parameter passed to UA_Server_addNode_begin to observe the value in the debugger. The value matched the node id from the nodeset and did not the value "seen" by the client.

发布评论

评论列表(0)

  1. 暂无评论