|
|
@@ -10,6 +10,8 @@ using HBLConsole.Attributes; |
|
|
|
using System.Reflection; |
|
|
|
using HBLConsole.Service; |
|
|
|
using System.Threading; |
|
|
|
using HBLConsole.Business; |
|
|
|
using BPA.Message.IOT; |
|
|
|
|
|
|
|
namespace HBLConsole.ViewModel |
|
|
|
{ |
|
|
@@ -169,6 +171,8 @@ namespace HBLConsole.ViewModel |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
IotReport.GetInstance.SendNodeStatusMessage(Tools.JsonConvertTools(new IOTNode { data = VariableMonitors })); |
|
|
|
Thread.Sleep(1000); |
|
|
|
}), "变量监控"); |
|
|
|
} |
|
|
@@ -177,4 +181,8 @@ namespace HBLConsole.ViewModel |
|
|
|
public static ObservableCollection<VariableMonitor> VariableMonitors { get; set; } = new ObservableCollection<VariableMonitor>(); |
|
|
|
|
|
|
|
} |
|
|
|
public class IOTNode |
|
|
|
{ |
|
|
|
public ObservableCollection<VariableMonitor> data { get; set; } |
|
|
|
} |
|
|
|
} |