初步完成OpcUa设备的开启连接,关闭断开连接的功能

This commit is contained in:
2025-09-12 15:45:14 +08:00
parent 6796a06325
commit d20b35185f
7 changed files with 112 additions and 414 deletions

View File

@@ -40,11 +40,7 @@ public class DeviceMonitoringService : IDeviceMonitoringService, IDisposable
{
if (_appDataStorageService.Devices.TryGetValue(e.DeviceId, out var device))
{
if (device.IsActive != e.NewStatus)
{
device.IsActive = e.NewStatus;
_appDataCenterService.DeviceManagementService.UpdateDeviceAsync(device);
}
_appDataCenterService.DeviceManagementService.UpdateDeviceAsync(device);
}
}