Browse Source

订阅主播消息

master
fyf 2 years ago
parent
commit
38d1c66bdb
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      DataVAPI/UpAndDown/ProcessServer.cs

+ 2
- 0
DataVAPI/UpAndDown/ProcessServer.cs View File

@@ -67,7 +67,9 @@ namespace DataVAPI.UpAndDown
{ {
ConsoleHelper.WriteSuccessLine($"阿里云【Transit】连接失败"); ConsoleHelper.WriteSuccessLine($"阿里云【Transit】连接失败");
} }
//订阅上下线
Subscribe(IOTDevServer.HeartbeatSubTopic); Subscribe(IOTDevServer.HeartbeatSubTopic);
//订阅主播消息
Subscribe(IOTDevServer.BroadcastTopic); Subscribe(IOTDevServer.BroadcastTopic);


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


Loading…
Cancel
Save