Example #1
0
 protected void Application_Start(object sender, EventArgs e)
 {
     try
     {
         _mqttWorker = new MqttWorker(MqttBrokerHostname, Nodes.Keys.ToArray());
         _mqttWorker.WindReadEvent += _mqttWorker_WindReadEvent;
         _mqttWorker.RunWorkerAsync();
     }
     catch (Exception ex)
     {
         Debug = ex.Message;
     }
 }
 protected void Application_Start(object sender, EventArgs e)
 {
     try
     {
         _mqttWorker = new MqttWorker(MqttBrokerHostname, Nodes.Keys.ToArray());
         _mqttWorker.WindReadEvent += _mqttWorker_WindReadEvent;
         _mqttWorker.RunWorkerAsync();
     }
     catch (Exception ex)
     {
         Debug = ex.Message;
     }
 }