|
|
@@ -73,17 +73,6 @@ namespace BPASmartClient.MorkS |
|
|
|
EventBus.EventBus.GetInstance().Publish(new OrderStatusChangedEvent() { GoodName = goodName, Status = oRDER_STATUS, SubOrderId = subid, deviceClientType = DeviceType }); |
|
|
|
} |
|
|
|
|
|
|
|
//private void ReadData(string address, ushort len = 1, Action<bool[]> action = null) |
|
|
|
//{ |
|
|
|
// EventBus.EventBus.GetInstance().Publish(new ReadModel() { DeviceId = DeviceId, Address = address, Length = len }, (o) => |
|
|
|
// { |
|
|
|
// if (o != null && o.Length > 0 && o[0] is bool[] bools) |
|
|
|
// { |
|
|
|
// action(bools); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
//} |
|
|
|
|
|
|
|
private void GetStatus(string key, Action<object> action) |
|
|
|
{ |
|
|
|
if (peripheralStatus.ContainsKey(key)) |
|
|
@@ -92,10 +81,6 @@ namespace BPASmartClient.MorkS |
|
|
|
{ |
|
|
|
action?.Invoke(peripheralStatus[key]); |
|
|
|
} |
|
|
|
//if (peripheralStatus[key] is bool[] bools) |
|
|
|
//{ |
|
|
|
// action?.Invoke(bools); |
|
|
|
//} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|