From cd8df2e7284fc74680957614f8d30fce4cf5e8f6 Mon Sep 17 00:00:00 2001 From: wanggang <76527413@qq.com> Date: Thu, 11 Mar 2021 09:43:55 +0800 Subject: [PATCH] update Former-commit-id: 7155d32c2fb8561e3d93b8266e583a236b088e1c Former-commit-id: 118c3936e6c3425cb521f193b8dc9445953fe4fd --- .../DeviceServices/LiChuang/LCDAUE800DService.cs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/projects/IoTNode/DeviceServices/LiChuang/LCDAUE800DService.cs b/projects/IoTNode/DeviceServices/LiChuang/LCDAUE800DService.cs index 9fef1174..40f406a8 100644 --- a/projects/IoTNode/DeviceServices/LiChuang/LCDAUE800DService.cs +++ b/projects/IoTNode/DeviceServices/LiChuang/LCDAUE800DService.cs @@ -8,7 +8,6 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; -using System.ComponentModel.DataAnnotations; using System.Globalization; using System.IO; using System.Linq; @@ -139,7 +138,6 @@ namespace IoTNode.DeviceServices.LiChuang { ex.PrintStack(); } - }); } } @@ -355,12 +353,12 @@ namespace IoTNode.DeviceServices.LiChuang Ip = ip, IoTGatewayId = iotNode.Id, IoTProductId = product.Id, - IsOnline=true, + IsOnline = true, }; deviceRepo.Add(device); deviceRepo.SaveChanges(); - this.UpdateIoTData(device.Id,DataKeys.Hardware, hardware); - this.UpdateIoTData(device.Id,DataKeys.Period, period); + this.UpdateIoTData(device.Id, DataKeys.Hardware, hardware); + this.UpdateIoTData(device.Id, DataKeys.Period, period); } } catch (Exception ex) @@ -490,7 +488,7 @@ namespace IoTNode.DeviceServices.LiChuang var dataKey = GetKey(equipidex); var unit = this.GetUnit(name)?.ToString(); var dataName = $"{dataKey.GetDisplayName():unit}"; - this.UpdateIoTData(deviceId.Value, dataKey, value,name:dataName,unit:unit); + this.UpdateIoTData(deviceId.Value, dataKey, value, name: dataName, unit: unit); } } @@ -656,4 +654,4 @@ namespace IoTNode.DeviceServices.LiChuang } } } -} +} \ No newline at end of file