|
|
@@ -1,4 +1,6 @@ |
|
|
|
using BPA.Message.Enum; |
|
|
|
using BPA.Message; |
|
|
|
using BPA.Message.Enum; |
|
|
|
using BPASmartClient.Business; |
|
|
|
using BPASmartClient.Device; |
|
|
|
using BPASmartClient.EventBus; |
|
|
|
using BPASmartClient.Helper; |
|
|
@@ -27,6 +29,7 @@ namespace BPASmartClient.MorkBF |
|
|
|
CommandRegist();//调试 |
|
|
|
ServerInit(); |
|
|
|
DataParse();//数据解析 |
|
|
|
ScreenDataServer();//大屏数据上报 |
|
|
|
DeviceProcessLogShow("MORKF 设备初始化完成"); |
|
|
|
} |
|
|
|
|
|
|
@@ -754,5 +757,48 @@ namespace BPASmartClient.MorkBF |
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
private void ScreenDataServer() |
|
|
|
{ |
|
|
|
LocalMqtt.GetInstance.Init(ScreenDeviceType.大炒); |
|
|
|
ThreadManage.GetInstance().StartLong(new Action(() => |
|
|
|
{ |
|
|
|
List<StatsModel> statsModels = new List<StatsModel>(); |
|
|
|
statsModels.Add(new StatsModel() { Name = "帝王蟹", Count = 666 }); |
|
|
|
ScreenModelMaxWok maxWok = new ScreenModelMaxWok |
|
|
|
{ |
|
|
|
IsRun = new Random().Next(0, 2) == 0 ? IsRun.运行 : IsRun.停止, |
|
|
|
WorkStatus_1 = (WorkStatus)new Random().Next(0, 3), |
|
|
|
WorkStatus_2 = (WorkStatus)new Random().Next(0, 3), |
|
|
|
RobotStatu = (WorkStatus)new Random().Next(0, 3), |
|
|
|
Alarm = new List<AlarmModel>(), |
|
|
|
FailuresCount = 0, |
|
|
|
StatsCount = statsModels, |
|
|
|
MaxWok_Dishes_1 = "满汉全席", |
|
|
|
MaxWok_Dishes_2 = "海鲜大餐", |
|
|
|
MaxWok_Task_1 = "炒制菜品", |
|
|
|
MaxWok_Task_2 = "热油", |
|
|
|
MaxWok_Process_1 = new List<ProcessModel>(), |
|
|
|
MaxWok_HeatGear_1 = new Random().Next(0, 5).ToString(), |
|
|
|
MaxWok_HeatGear_2 = new Random().Next(0, 5).ToString(), |
|
|
|
MaxWok_StirGear_1 = new Random().Next(0, 5).ToString(), |
|
|
|
MaxWok_StirGear_2 = new Random().Next(0, 5).ToString(), |
|
|
|
MaxWok_FlipSpeed_1 = new Random().Next(250, 450).ToString(), |
|
|
|
MaxWok_FlipSpeed_2 = new Random().Next(250, 450).ToString(), |
|
|
|
MaxWok_Temp_1 = new Random().Next(250, 450).ToString(), |
|
|
|
MaxWok_Temp_2 = new Random().Next(250, 450).ToString(), |
|
|
|
MaxWok_OrderCount_1 = 2, |
|
|
|
MaxWok_OrderCount_2 = 2, |
|
|
|
MaxWok_ErrorOrderCount_1 = 0, |
|
|
|
MaxWok_ErrorOrderCount_2 = 0, |
|
|
|
|
|
|
|
}; |
|
|
|
LocalMqtt.GetInstance.Publish(maxWok); |
|
|
|
Thread.Sleep(1000); |
|
|
|
|
|
|
|
}), "大屏数据上报"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |