fyf преди 2 години
родител
ревизия
c53fd58706
променени са 1 файла, в които са добавени 6 реда и са изтрити 10 реда
  1. +6
    -10
      BPASmartClient.IoT/DataVClient.cs

+ 6
- 10
BPASmartClient.IoT/DataVClient.cs Целия файл

@@ -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


}

//命令实体类


Зареждане…
Отказ
Запис