Skip to content

Commit 7dd31af

Browse files
committed
feat(api): added DeviceDriver to device model
1 parent e27b4fc commit 7dd31af

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Kepware.Api/Model/Project/Device.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,12 @@ public Device(string name, string channelName)
7070
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
7171
public DeviceTagGroupCollection? TagGroups { get; set; }
7272

73+
/// <summary>
74+
/// Gets the driver used by this device.
75+
/// </summary>
76+
[YamlIgnore, JsonIgnore]
77+
public string? DeviceDriver => GetDynamicProperty<string>(Properties.Device.DeviceDriver);
78+
7379
/// <summary>
7480
/// Gets the unique ID key for the device.
7581
/// </summary>

0 commit comments

Comments
 (0)