Skip to content

Commit

Permalink
Fix wrongly assigned namespace index
Browse files Browse the repository at this point in the history
  • Loading branch information
m-meingast authored and azoitl committed Nov 27, 2024
1 parent 38af284 commit be63077
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/com/opc_ua/opcua_objectstruct_helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ forte::com_infra::EComResponse COPC_UA_ObjectStruct_Helper::createObjectNode(CAc
if( (UA_STATUSCODE_GOOD != mHandler->initializeAction(*mCreateNodeActionInfo)) || (UA_STATUSCODE_GOOD != mHandler->executeAction(*mCreateNodeActionInfo)) ) {
return response;
}
} else {
if(paActionInfo.getNodePairInfo().begin()->getNodeId() != nullptr) {
mOpcuaObjectNamespaceIndex = paActionInfo.getNodePairInfo().begin()->getNodeId()->namespaceIndex;
}
}
return initializeMemberAction(paActionInfo, browsePath, paIsPublisher);
}
Expand Down

0 comments on commit be63077

Please sign in to comment.