Exemplo n.º 1
0
        void receiver_DataReceived(object sender, DataArgs e)
        {
            Console.WriteLine("dataReceived");
            try
            {
                TelemetryFeedback feedback = TelemetryFeedback.Decode(e.Data);

                Console.WriteLine(feedback.PowerUsed);

                if(TelemetryReceived != null)
                    TelemetryReceived(this, new TelemetryReceivedEventArgs(TelemetryFeedback.Decode(e.Data)));
            }
            catch (Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.Message);
            }
        }
Exemplo n.º 2
0
 private void OnDataReceived(DataArgs args)
 {
     if (DataReceived != null)
         DataReceived(this, args);
 }