NXX преди 2 години
родител
ревизия
0d439f8247
променени са 1 файла, в които са добавени 8 реда и са изтрити 3 реда
  1. +8
    -3
      BPASmartClient.Business/Plugin/LocalMqtt.cs

+ 8
- 3
BPASmartClient.Business/Plugin/LocalMqtt.cs Целия файл

@@ -15,13 +15,18 @@ namespace BPASmartClient.Business.Plugin
public static LocalMqtt GetInstance => _Instance ?? (_Instance = new LocalMqtt());
private LocalMqtt() { }

SendScreenDataModel MqttPush = new SendScreenDataModel();
/// <summary>
///
/// </summary>
SendScreenDataModel MqttPushs = new SendScreenDataModel();

MQTTProxy mQTTProxy = new MQTTProxy();

public void Init(ScreenDeviceType DeviceType)
{
Dictionary<string, string> MqttPushdata = new Dictionary<string, string>();
MqttPush.mqttDataDic.Add(DeviceType.ToString(), SetTopic(DeviceType, MqttPushdata));
MQTTProxy mQTTProxy = new MQTTProxy();
MqttPushs.mqttDataDic.Add(DeviceType.ToString(), SetTopic(DeviceType, MqttPushdata));
mQTTProxy.Connected = new Action(() =>
{
mQTTProxy.Subscrib(ScreenTOPIC.GetInstance.GetTopic(DeviceType)) ;


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