From 8904297989af0883fec8bc3d44825c0ad295a802 Mon Sep 17 00:00:00 2001 From: fyf Date: Fri, 13 May 2022 10:15:33 +0800 Subject: [PATCH] 343 --- DataVAPI/UpAndDown/ProcessServer.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/DataVAPI/UpAndDown/ProcessServer.cs b/DataVAPI/UpAndDown/ProcessServer.cs index ddda032..e446b85 100644 --- a/DataVAPI/UpAndDown/ProcessServer.cs +++ b/DataVAPI/UpAndDown/ProcessServer.cs @@ -75,8 +75,7 @@ namespace DataVAPI.UpAndDown Subscribe(IOTDevServer.HeartbeatSubTopic); //订阅主播消息 - Subscribe("/broadcast/grgpECHSL7q/Transit_SetDevice"); - Subscribe("/broadcast/grgpECHSL7q/Transit_Test_SetDevice"); + Subscribe(IOTDevServer.BroadcastTopic); IOTDevServer.UNConnectMqtt += new Action((o) => { ConsoleHelper.WriteSuccessLine(o); }); @@ -317,7 +316,7 @@ namespace DataVAPI.UpAndDown } } } - else if (topic == "/broadcast/grgpECHSL7q/Transit_SetDevice" || topic == "/broadcast/grgpECHSL7q/Transit_Test_SetDevice")//广播主题 + else if (topic == IOTDevServer.BroadcastTopic)//广播主题 { if (message.Contains("AlarmType")) {