|
|
@@ -178,6 +178,7 @@ namespace BPASmartClient.IoT |
|
|
|
{ |
|
|
|
if (DeviceDataV != null && DeviceDataV.GetIsConnected() && DeviceDataV.deviceTable != null) |
|
|
|
{ |
|
|
|
iOTDevSXModel.Device1=String.Empty;iOTDevSXModel.Device2=String.Empty;iOTDevSXModel.Device3 = String.Empty; |
|
|
|
List<object> dataVNode = new List<object>(); |
|
|
|
Plugin.GetInstance()?.GetPlugin<DeviceMgr>()?.GetDevices()?.ForEach(device => |
|
|
|
{ |
|
|
@@ -197,6 +198,10 @@ namespace BPASmartClient.IoT |
|
|
|
VariableMonitor = device.GetVariableMonitor(), |
|
|
|
}; |
|
|
|
dataVNode.Add(obj); |
|
|
|
|
|
|
|
if (string.IsNullOrEmpty(iOTDevSXModel.Device1)) iOTDevSXModel.Device1 = $"[{device.Name}]:{(device.IsBusy ? "忙碌" : "空闲")}-{(device.IsHealth ? "健康" : "故障")}"; |
|
|
|
else if (string.IsNullOrEmpty(iOTDevSXModel.Device2)) iOTDevSXModel.Device2 = $"[{device.Name}]:{(device.IsBusy ? "忙碌" : "空闲")}-{(device.IsHealth ? "健康" : "故障")}"; |
|
|
|
else if (string.IsNullOrEmpty(iOTDevSXModel.Device3)) iOTDevSXModel.Device3 = $"[{device.Name}]:{(device.IsBusy ? "忙碌" : "空闲")}-{(device.IsHealth ? "健康" : "故障")}"; |
|
|
|
}); |
|
|
|
if (dataVNode.Count > 0) |
|
|
|
{ |
|
|
|