From 9340d1cbb1faddb977162a799cf7d17adb2f0b50 Mon Sep 17 00:00:00 2001 From: fyf Date: Wed, 11 May 2022 16:47:24 +0800 Subject: [PATCH] 34343 --- DataVAPI/UpAndDown/ProcessServer.cs | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/DataVAPI/UpAndDown/ProcessServer.cs b/DataVAPI/UpAndDown/ProcessServer.cs index 1670f16..4abe2b0 100644 --- a/DataVAPI/UpAndDown/ProcessServer.cs +++ b/DataVAPI/UpAndDown/ProcessServer.cs @@ -68,7 +68,7 @@ namespace DataVAPI.UpAndDown ConsoleHelper.WriteSuccessLine($"阿里云【Transit】连接失败"); } //属性状态变xin - Subscribe(IOTDevServer.TargetStatusSubTopic); + //Subscribe(IOTDevServer.TargetStatusSubTopic); //订阅上下线 Subscribe(IOTDevServer.HeartbeatSubTopic); @@ -324,14 +324,15 @@ namespace DataVAPI.UpAndDown logController.Create(Tools.JsonToObjectTools(message)); } - } else if (topic == IOTDevServer.TargetStatusSubTopic)//属性变更 - { - ReceiveModel rEmodel = Tools.JsonToObjectTools(message); - string name= rEmodel.deviceContext.deviceName; - string status = rEmodel.props.NodeStatus.value; - string id = deviceController.QueryDeviceName(name)?.obj?.data?.ClientId; - screenController.CreateOrUpdate(new LargeScreenTable() { json = status, devicename = name, ClientId = id, DeviceId = "" }); - } + } + //else if (topic == IOTDevServer.TargetStatusSubTopic)//属性变更 + //{ + // ReceiveModel rEmodel = Tools.JsonToObjectTools(message); + // string name= rEmodel.deviceContext.deviceName; + // string status = rEmodel.props.NodeStatus.value; + // string id = deviceController.QueryDeviceName(name)?.obj?.data?.ClientId; + // screenController.CreateOrUpdate(new LargeScreenTable() { json = status, devicename = name, ClientId = id, DeviceId = "" }); + //} } } }