|
@@ -135,6 +135,12 @@ namespace IMCS.CCS.Service.Impl
|
|
|
|
|
|
deviceList = deviceList.Where(x => x.ProtocolType.Equals(ProtocalTypeEnum.OPCUA.ToString()) && x.State).ToList();
|
|
|
|
|
|
+ if (deviceList == null || deviceList.Count == 0 )
|
|
|
+ {
|
|
|
+ Log.Instance.WriteLogAdd("=== 无在线设备 ===", LOG_TITLE_OPCUA);
|
|
|
+ return "==== 无在线设备 ====";
|
|
|
+ }
|
|
|
+
|
|
|
foreach (Device device in deviceList)
|
|
|
{
|
|
|
List<CcsTagValue> tagValues = new List<CcsTagValue>();
|