|
|
@@ -1,5 +1,7 @@ |
|
|
|
using BPASmartClient.Device; |
|
|
|
using BPASmartClient.EventBus; |
|
|
|
using BPASmartClient.Helper; |
|
|
|
using BPASmartClient.Model; |
|
|
|
using BPASmartClient.Peripheral; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
@@ -63,7 +65,12 @@ namespace BPASmartClient.Business |
|
|
|
|
|
|
|
public void StartService() |
|
|
|
{ |
|
|
|
this.devices.ForEach(device => device.StartMain()); |
|
|
|
this.devices.ForEach(device => |
|
|
|
{ |
|
|
|
device.StartMain(); |
|
|
|
//todo请求数据 |
|
|
|
new RecipeBomEvent() { Id = device.DeviceId}.Publish(); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public void StopService() |
|
|
|