liusuyi
2024-10-23 2b43275bd260eda468f305ebca4b4f4291b0605d
ard-work/src/main/java/com/ard/tianyu/netty/handler/MessageProtocolDecoder.java
@@ -42,6 +42,13 @@
                baseCommand = new HeartbeatReplyCommand(timestamp);
                log.debug("心跳回复: 时间戳 {}", timestamp);
                break;
            case 0x03:
            case 0x04:
                byte[] boxSn = new byte[dataLength - 1];
                in.readBytes(boxSn);
                SubscribeCommand payload = new SubscribeCommand(new String(boxSn));
                log.debug("订阅回复: {}", payload.getBoxSn());
                break;
            case (byte) 0xA8:
                byte[] uavStatus = new byte[dataLength - 1];
                in.readBytes(uavStatus);  // 读取 ProtoBuf 数据