Skip to content

Commit

Permalink
Small code refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
barnstee committed Aug 22, 2024
1 parent edc8a1c commit db0dcc4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions UANodeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,11 @@ private void AddNodeForWoTForm(NodeState assetFolder, ThingDescription td, KeyVa
_tags.Add(assetId, new List<AssetTag>());
}

AddTag(td, form, assetId, unitId, variableId, fieldPath);
}

private void AddTag(ThingDescription td, object form, string assetId, byte unitId, string variableId, string fieldPath)
{
if (td.Base.ToLower().StartsWith("modbus+tcp://"))
{
// create an asset tag and add to our list
Expand Down

0 comments on commit db0dcc4

Please sign in to comment.