puzhibing
9 天以前 8c6849d98fc168369d6de2d94d2f42a6d67cd9c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.ruoyi.dataInterchange.model;
 
import io.netty.buffer.ByteBuf;
import lombok.Data;
 
/**
 * 主链路断开通知
 * @author zhibing.pu
 * @Date 2025/2/24 10:59
 */
@Data
public class UPDisconnectInform {
    /**
     * 错误代码
     * 0x00:主链路断开
     * 0x01:其他
     */
    private int errorCode;
    
    /**
     * 解析报文
     */
    public UPDisconnectInform decode(ByteBuf byteBuf) {
        try {
            this.errorCode = byteBuf.readByte();
        }catch (Exception e){
            e.printStackTrace();
        }
        return this;
    }
}