Пример #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;
 }
Пример #2
0
 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());
 }