Skip to content

Commit

Permalink
Added OPC UA variables for submodel definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnstee committed Oct 20, 2024
1 parent 479c43c commit 8ea7bdd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/OPCUAViewer/I4AASNodeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,15 @@ public NodeState CreateObject(NodeState parent, AssetAdministrationShellEnvironm
{
for (int i = 0; i < aas.Submodels.Count; i++)
{
CreateVariable<string>(o, "Submodel_" + i.ToString(), c_submodelNodeId, aas.Submodels[i].Keys[0].Value);
CreateVariable<string>(o, "Submodel Reference " + i.ToString(), c_submodelNodeId, aas.Submodels[i].Keys[0].Value);
}
}

if (env.Submodels != null && env.Submodels.Count > 0)
{
for (int i = 0; i < env.Submodels.Count; i++)
{
CreateVariable<string>(o, "Submodel Definition " + i.ToString(), c_submodelNodeId, env.Submodels[i].IdShort);
}
}

Expand Down

0 comments on commit 8ea7bdd

Please sign in to comment.