-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
817dbae
commit 84abbb5
Showing
3 changed files
with
141 additions
and
124 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
libraries/MTConnect.NET-MQTT/Configurations/IMTConnectMqttExpanderConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2023 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
using System.Collections.Generic; | ||
|
||
namespace MTConnect.Configurations | ||
{ | ||
public interface IMTConnectMqttExpanderConfiguration : IMTConnectMqttClientConfiguration | ||
{ | ||
IEnumerable<string> Devices { get; set; } | ||
|
||
string DocumentFormat { get; set; } | ||
|
||
string ExpandedTopicPrefix { get; set; } | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
libraries/MTConnect.NET-MQTT/Configurations/MTConnectMqttExpanderConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) 2023 TrakHound Inc., All Rights Reserved. | ||
// TrakHound Inc. licenses this file to you under the MIT license. | ||
|
||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace MTConnect.Configurations | ||
{ | ||
public class MTConnectMqttExpanderConfiguration : MTConnectMqttClientConfiguration, IMTConnectMqttExpanderConfiguration | ||
{ | ||
[JsonPropertyName("devices")] | ||
public IEnumerable<string> Devices { get; set; } | ||
|
||
[JsonPropertyName("documentFormat")] | ||
public string DocumentFormat { get; set; } | ||
|
||
[JsonPropertyName("expandedTopicPrefix")] | ||
public string ExpandedTopicPrefix { get; set; } | ||
|
||
|
||
public MTConnectMqttExpanderConfiguration() | ||
{ | ||
DocumentFormat = MTConnect.DocumentFormat.XML; | ||
ExpandedTopicPrefix = "MTConnect-Expanded"; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters