Skip to content

Commit

Permalink
Update to allow the Device UUID in the DeviceConfiguration file to ov…
Browse files Browse the repository at this point in the history
…erride the Device UUID from an HTTP Adapter in a Gateway Agent
  • Loading branch information
PatrickRitchie committed Nov 2, 2023
1 parent cec7741 commit b2cf403
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private void StreamsDocumentReceived(MTConnectHttpClient client, IStreamsRespons
input.Timestamp = observation.Timestamp.ToUnixTime();
input.Values = observation.Values;

Agent.AddObservation(stream.Uuid, input);
Agent.AddObservation(client.Device, input);
}
}
}
Expand All @@ -267,7 +267,7 @@ private void AssetsDocumentReceived(MTConnectHttpClient client, IAssetsResponseD

foreach (var asset in document.Assets)
{
Agent.AddAsset(asset.DeviceUuid, asset);
Agent.AddAsset(client.Device, asset);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ private void StreamsDocumentReceived(MTConnectHttpClient client, IStreamsRespons
input.Timestamp = observation.Timestamp.ToUnixTime();
input.Values = observation.Values;

Agent.AddObservation(stream.Uuid, input);
Agent.AddObservation(client.Device, input);
}
}
}
Expand All @@ -267,7 +267,7 @@ private void AssetsDocumentReceived(MTConnectHttpClient client, IAssetsResponseD

foreach (var asset in document.Assets)
{
Agent.AddAsset(asset.DeviceUuid, asset);
Agent.AddAsset(client.Device, asset);
}
}
}
Expand Down

0 comments on commit b2cf403

Please sign in to comment.