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.