Skip to content

Commit

Permalink
fix(plc4go/opcua): common fix and sync
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Sep 26, 2024
1 parent 5a58177 commit e84a1fc
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 90 deletions.
2 changes: 1 addition & 1 deletion plc4go/internal/opcua/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func generateNodeId(tag Tag) (readWriteModel.NodeId, error) {
}
nodeId = readWriteModel.NewNodeId(readWriteModel.NewNodeIdGuid( /*TODO: do we want to check for overflow?*/ uint16(tag.GetNamespace()), guidBytes))
} else if tag.GetIdentifierType() == readWriteModel.OpcuaIdentifierType_STRING_IDENTIFIER {
nodeId = readWriteModel.NewNodeId(readWriteModel.NewNodeIdString( /*TODO: do we want to check for overflow?*/ uint16(tag.GetNamespace()), readWriteModel.NewPascalString(utils.MakePtr(tag.GetIdentifier()))))
nodeId = readWriteModel.NewNodeId(readWriteModel.NewNodeIdString( /*TODO: do we want to check for overflow?*/ uint16(tag.GetNamespace()), readWriteModel.NewPascalString(utils.ToPtr(tag.GetIdentifier()))))
}
return nodeId, nil
}
Expand Down
4 changes: 2 additions & 2 deletions plc4go/protocols/opcua/readwrite/model/ExtensionObject.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e84a1fc

Please sign in to comment.