|
@@ -99,7 +99,7 @@ namespace DataVAPI.UpAndDown |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
|
if (!FistBOOL) |
|
|
|
|
|
|
|
|
if (!IOTDevServer.GetInstance().GetIsConnected()) |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
if (IOTDevServer.GetInstance().CreateLinks(DataBus.ProductKey, DataBus.DeviceName, DataBus.DeviceSecret)) |
|
|
if (IOTDevServer.GetInstance().CreateLinks(DataBus.ProductKey, DataBus.DeviceName, DataBus.DeviceSecret)) |
|
@@ -110,7 +110,6 @@ namespace DataVAPI.UpAndDown |
|
|
|
|
|
|
|
|
//订阅主播消息 |
|
|
//订阅主播消息 |
|
|
Subscribe(IOTDevServer.BroadcastTopic); |
|
|
Subscribe(IOTDevServer.BroadcastTopic); |
|
|
FistBOOL=true; |
|
|
|
|
|
} |
|
|
} |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|