|
|
@@ -71,10 +71,13 @@ namespace BPASmartClient.Device |
|
|
|
{ |
|
|
|
foreach (var peripheral in peripherals) |
|
|
|
{ |
|
|
|
string TypeName = peripheral.GetType().FullName.Replace("BPASmartClient.",""); |
|
|
|
Status.Update($"{TypeName}.IsConnected", peripheral.IsConnected); |
|
|
|
Status.Update($"{TypeName}.IsWork", peripheral.IsWork); |
|
|
|
foreach (var key in peripheral.GetAllStatus().Keys) |
|
|
|
{ |
|
|
|
peripheralStatus[key] = peripheral.GetAllStatus()[key]; |
|
|
|
Status.Update(key, peripheral.GetAllStatus()[key]); |
|
|
|
Status.Update($"{TypeName}.{key}", peripheral.GetAllStatus()[key]); |
|
|
|
} |
|
|
|
} |
|
|
|
Thread.Sleep(100); |
|
|
|