Esempio n. 1
0
        public TestHandler(string mqttHost, int mqttPort, System.Xml.XmlDocument xml)
        {
            InitializeComponent();

            handler              = new MqttHandler("");
            handler.LogMsgEvent += Handler_LogMsgEvent;
            handler.Init(mqttHost, mqttPort, xml);
        }
Esempio n. 2
0
        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>();
        }
Esempio n. 3
0
 private void TestHandler_FormClosing(object sender, FormClosingEventArgs e)
 {
     handler.Stop();
     handler = null;
 }
Esempio n. 4
0
 public MqttHostedService(IOptions <ApplicationConfiguration> conf)
 {
     Handler = new MqttHandler();
     Handler.Initialize(conf.Value.Mqtt).Wait();
 }