Skip to content

Commit

Permalink
TopicPrefix propagation to mqtt relay agent
Browse files Browse the repository at this point in the history
  • Loading branch information
M2rtViljaste committed May 19, 2023
1 parent 2079bb9 commit 6973a72
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 6973a72

Please sign in to comment.