Exemplo n.º 1
0
 private void buttonReadBin_Click(object sender, EventArgs e)
 {
     try
     {
         byte[] data;
         int    len = ci.Read(out data);
         LogMsg("RX len: {0}, data (hex): {1}", len, PapUtils.ConvertBinToHex(data));
     }
     catch (Exception ex)
     {
         LogMsg("Exception: " + ex.Message);
     }
 }
Exemplo n.º 2
0
 // pøíjem paketù
 private void PacketReceive(PacketSpinel97 packet)
 {
     LogMsg("Receive Packet > " + PapUtils.ConvertBinToHex(packet.GetBin()));
 }