/// <summary> /// Message received from arduino /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Connector_PacketReceived(object sender, ARCPO_ReceivedEventArgs e) { this.mReceivedMessageHistory.Add(e.Packet); if (this.PacketReceived != null) { this.PacketReceived(this, e); } }
private void Connector_PacketReceived(object sender, ARCPO_ReceivedEventArgs e) { textBox1.Text += ">>RECEIVED unexpected message " + e.Packet.mID + " : "; textBox1.Text += e.Packet.ContentString; textBox1.Text += "\r\n"; }