-
-
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
71ff0ad
commit a6795b8
Showing
3 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
libraries/MTConnect.NET-MQTT/Input/MTConnectMqttInputDevices.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,37 @@ | ||
using MTConnect.Devices; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace MTConnect.Mqtt | ||
{ | ||
public class MTConnectMqttInputDevices | ||
{ | ||
[JsonPropertyName("devices")] | ||
public Dictionary<string, string> Devices { get; set; } | ||
|
||
|
||
public MTConnectMqttInputDevices() { } | ||
|
||
public MTConnectMqttInputDevices(IDevice device) | ||
{ | ||
if (device != null && !string.IsNullOrEmpty(device.Uuid)) | ||
{ | ||
|
||
} | ||
} | ||
|
||
public MTConnectMqttInputDevices(IEnumerable<IDevice> devices) | ||
{ | ||
if (!devices.IsNullOrEmpty()) | ||
{ | ||
foreach (var device in devices) | ||
{ | ||
if (device != null && !string.IsNullOrEmpty(device.Uuid)) | ||
{ | ||
|
||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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