Browse Source

更新

样式分支
fyf 2 years ago
parent
commit
c53fd58706
1 changed files with 6 additions and 10 deletions
  1. +6
    -10
      BPASmartClient.IoT/DataVClient.cs

+ 6
- 10
BPASmartClient.IoT/DataVClient.cs View File

@@ -140,7 +140,6 @@ namespace BPASmartClient.IoT
MessageLog.GetInstance.Show($"客户端:【{ClientId}】,设备名称{DeviceDataV.deviceTable.devicename}阿里云连接成功");
}
else MessageLog.GetInstance.ShowEx(message);

}

/// <summary>
@@ -171,17 +170,14 @@ namespace BPASmartClient.IoT
/// <param name="message"></param>
private void DevIOTActionHandler(string deviceId, string topic, string message)
{
//if (DeviceDataVs.ContainsKey() DeviceDataVs[deviceId].BroadcastTopic == topic && !string.IsNullOrEmpty(message))//广播主题消息,将广播消息发送到相应客户端
//{
// IOTCommandModel iOTCommand = Tools.JsonToObjectTools<IOTCommandModel>(message);
// if (iOTCommand.deviceName == DeviceDataVs[deviceId].deviceTable.devicename)
// ActionManage.GetInstance.Send("IotBroadcast", iOTCommand);
//}
if (DeviceDataV.BroadcastTopic == topic && !string.IsNullOrEmpty(message))//广播主题消息,将广播消息发送到相应客户端
{
IOTCommandModel iOTCommand = Tools.JsonToObjectTools<IOTCommandModel>(message);
if (iOTCommand.deviceName == DeviceDataV.deviceTable.devicename)
ActionManage.GetInstance.Send("IotBroadcast", iOTCommand);
}
}
#endregion


}

//命令实体类


Loading…
Cancel
Save