Skip to content

Commit

Permalink
Bug fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnstee committed Oct 20, 2024
1 parent a881fb1 commit 479c43c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/OPCUAViewer/I4AASNodeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ public NodeState CreateObject(NodeState parent, AssetAdministrationShellEnvironm
CreateVariable<string>(o, "Identification", c_identifiableTypeNodeId, aas.Id);
CreateVariable<string>(o, "Administration", c_administrationNodeId, aas.Administration?.ToString());

if (aas.EmbeddedDataSpecifications != null && aas.EmbeddedDataSpecifications != null)
if (aas.EmbeddedDataSpecifications != null)
{
foreach (var ds in aas.EmbeddedDataSpecifications)
{
Expand All @@ -392,9 +392,9 @@ public NodeState CreateObject(NodeState parent, AssetAdministrationShellEnvironm

if (aas.Submodels != null && aas.Submodels.Count > 0)
{
foreach (var smr in aas.Submodels)
for (int i = 0; i < aas.Submodels.Count; i++)
{
CreateVariable<string>(o, "Submodel", c_submodelNodeId, smr.ToString());
CreateVariable<string>(o, "Submodel_" + i.ToString(), c_submodelNodeId, aas.Submodels[i].Keys[0].Value);
}
}

Expand Down

0 comments on commit 479c43c

Please sign in to comment.