Browse Source

更新

master
fyf 2 years ago
parent
commit
0372fa806c
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      DataVAPI/UpAndDown/ProcessServer.cs

+ 3
- 3
DataVAPI/UpAndDown/ProcessServer.cs View File

@@ -75,7 +75,8 @@ namespace DataVAPI.UpAndDown
Subscribe(IOTDevServer.HeartbeatSubTopic); Subscribe(IOTDevServer.HeartbeatSubTopic);


//订阅主播消息 //订阅主播消息
Subscribe(IOTDevServer.BroadcastTopic);
Subscribe("/broadcast/grgpECHSL7q/Transit_SetDevice");
Subscribe("/broadcast/grgpECHSL7q/Transit_Test_SetDevice");


IOTDevServer.UNConnectMqtt += new Action<string>((o) => { ConsoleHelper.WriteSuccessLine(o); }); IOTDevServer.UNConnectMqtt += new Action<string>((o) => { ConsoleHelper.WriteSuccessLine(o); });


@@ -316,9 +317,8 @@ namespace DataVAPI.UpAndDown
} }
} }
} }
else if (topic == IOTDevServer.BroadcastTopic)//广播主题
else if (topic == "/broadcast/grgpECHSL7q/Transit_SetDevice" || topic == "/broadcast/grgpECHSL7q/Transit_Test_SetDevice")//广播主题
{ {

if (message.Contains("AlarmType")) if (message.Contains("AlarmType"))
{ {
AlarmTable alarm= Tools.JsonToObjectTools<AlarmTable>(message); AlarmTable alarm= Tools.JsonToObjectTools<AlarmTable>(message);


Loading…
Cancel
Save