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 2fc9420 commit cec7741
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ 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);
//Agent.AddObservation(stream.Uuid, input);
}
}
}
Expand All @@ -269,7 +270,8 @@ private void AssetsDocumentReceived(MTConnectHttpClient client, IAssetsResponseD

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

0 comments on commit cec7741

Please sign in to comment.