Example #1
0
        private void server_MessageReceived(object sender, OpenWebNetDataEventArgs e)
        {
            string[] values;

            if (string.IsNullOrEmpty(e.Data))
            {
                return;
            }

            App.logger.Debug(string.Format("Received: {0}", e.Data));

            values = Utilities.GetPowerManagementValues(e.Data);

            if (values == null || values.Length < 4)
            {
                App.logger.Debug("Parsing...no values");
                return;
            }

            this.Dispatcher.Invoke(updateUI, DispatcherPriority.Normal, (object)values);
        }
Example #2
0
        private void gateway_DataReceived(object sender, OpenWebNetDataEventArgs e)
        {
            logger.Debug(string.Format("Data received: {0}", e.Data));

            this.Invoke(updateRes, e.Data);
        }
Example #3
0
 private void command_DataReceived(object sender, OpenWebNetDataEventArgs e)
 {
     this.Invoke(commandUpdateRes, e.Data);
 }
Example #4
0
 private void monitor_DataReceived(object sender, OpenWebNetDataEventArgs e)
 {
     this.Invoke(monitorUpdateRes, e.Data);
 }