|
|
@@ -60,17 +60,15 @@ namespace DataVAPI.UpAndDown |
|
|
|
ConsoleHelper.WriteInfoLine("尝试连接阿里云."); |
|
|
|
if (IOTDevServer.GetInstance().CreateLinks("grgpECHSL7q", "Transit", "562dcc779b918a54c2d6589ec30ee230")) |
|
|
|
{ |
|
|
|
|
|
|
|
ConsoleHelper.WriteSuccessLine($"阿里云【Transit】连接成功"); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
ConsoleHelper.WriteSuccessLine($"阿里云【Transit】连接失败"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
IOTDevServer.UNConnectMqtt += new Action<string>((o) => { ConsoleHelper.WriteSuccessLine(o); }); |
|
|
|
|
|
|
|
Subscribe(IOTDevServer.HeartbeatSubTopic); |
|
|
|
IOTDevServer.UNConnectMqtt += new Action<string>((o) => { ConsoleHelper.WriteSuccessLine(o); }); |
|
|
|
|
|
|
|
IOTDevServer.DevIOTAction += DevIOTActionHandler; |
|
|
|
|
|
|
|