|
|
@@ -1,6 +1,7 @@ |
|
|
|
using DataVApi.Order; |
|
|
|
using DataVAPI.Controllers; |
|
|
|
using DataVAPI.Model; |
|
|
|
using DataVAPI.ModelDataBus; |
|
|
|
using DataVAPI.Tool; |
|
|
|
using DataVAPI.Tool.IOT; |
|
|
|
using DataVAPI.Tool.控制台显示; |
|
|
@@ -58,9 +59,9 @@ namespace DataVAPI.UpAndDown |
|
|
|
LoadingShopInformation(); |
|
|
|
//MQTT 数据接收处理 |
|
|
|
ConsoleHelper.WriteInfoLine("尝试连接阿里云."); |
|
|
|
if (IOTDevServer.GetInstance().CreateLinks("grgpECHSL7q", "Transit", "562dcc779b918a54c2d6589ec30ee230")) |
|
|
|
if (IOTDevServer.GetInstance().CreateLinks(DataBus.ProductKey, DataBus.DeviceName, DataBus.DeviceSecret)) |
|
|
|
//if (IOTDevServer.GetInstance().CreateLinks("grgpECHSL7q", "Transit", "562dcc779b918a54c2d6589ec30ee230")) |
|
|
|
{ |
|
|
|
|
|
|
|
ConsoleHelper.WriteSuccessLine($"阿里云【Transit】连接成功"); |
|
|
|
} |
|
|
|
else |
|
|
|