static void mote_onMessageArrived(object sender, EventArgSerialMessage e) { MoteMessage data = new MoteMessage(e.msg.GetPayload()); data.Print(); }