Skip to content

Commit

Permalink
Merge pull request #49 from M2rtViljaste/master
Browse files Browse the repository at this point in the history
TopicPrefix propagation to mqtt relay agent
  • Loading branch information
PatrickRitchie authored May 20, 2023
2 parents 2079bb9 + 6973a72 commit d5235a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ protected override async void OnStartAgentAfterLoad(IEnumerable<DeviceConfigurat
clientConfiguration.PemPrivateKey = _configuration.PemPrivateKey;
clientConfiguration.UseTls = _configuration.UseTls;
clientConfiguration.AllowUntrustedCertificates = _configuration.AllowUntrustedCertificates;
clientConfiguration.TopicPrefix = _configuration.TopicPrefix;


// Set Observation Intervals
Expand Down
2 changes: 1 addition & 1 deletion src/MTConnect.NET-MQTT/MTConnectMqttRelay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class MTConnectMqttRelay : IDisposable

public MTConnectMqttFormat Format { get; set; }

public string TopicPrefix { get; set; }
public string TopicPrefix => _configuration.TopicPrefix;

public bool RetainMessages { get; set; }

Expand Down

0 comments on commit d5235a6

Please sign in to comment.