示例#1
0
 public String parsedFormat(final ZToolPacket packet) {
   final DoubleByte cmd = packet.getCMD();
   String output =
       "0xFE \t "
           + packet.getLEN()
           + " \t "
           + ByteUtils.toBase16(cmd.getMsb())
           + " "
           + ByteUtils.toBase16(cmd.getLsb())
           + " \t "
           + " [ "
           + ByteUtils.toBase16(packet.getPacket(), ZToolPacket.PAYLOAD_START_INDEX)
           + " ] \t "
           + ByteUtils.toBase16(packet.getFCS());
   return output;
 }
 public ZDO_IEEE_ADDR_REQ_SRSP(int[] framedata) {
   this.Status = framedata[0];
   super.buildPacket(new DoubleByte(ZToolCMD.ZDO_IEEE_ADDR_REQ_SRSP), framedata);
 }
示例#3
0
 public String rawFormat(ZToolPacket packet) {
   return ByteUtils.toBase16(packet.getPacket());
 }