public TestHandler(string mqttHost, int mqttPort, System.Xml.XmlDocument xml) { InitializeComponent(); handler = new MqttHandler(""); handler.LogMsgEvent += Handler_LogMsgEvent; handler.Init(mqttHost, mqttPort, xml); }
public List <byte> subQosLevels; // 구독 QoS 리스트 #endregion #region Constructor public InterfaceNeuromeka(CommInfo commInfo) { base.division = "ROBOT"; base.commInfo = commInfo; base.isConnect = false; base.SEND_DATA = new Dictionary <object, object>(); //base.sendData = new Dictionary<string, object>(); //base.receiveData = new Dictionary<string, object>(); neuromekaHandle = new MqttHandler(commInfo.machineIp); subTopics = new List <string>(); subQosLevels = new List <byte>(); }
private void TestHandler_FormClosing(object sender, FormClosingEventArgs e) { handler.Stop(); handler = null; }
public MqttHostedService(IOptions <ApplicationConfiguration> conf) { Handler = new MqttHandler(); Handler.Initialize(conf.Value.Mqtt).Wait(); }