wjc
2025-04-24 8a249407f9a91b696b88d74eea0fbf789d0ee6a4
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
32
33
34
35
36
package com.hdl.sdk.link.core.bean;
 
 
/**
 * Created by Tong on 2021/9/29.
 */
public class HexRequest extends LinkRequest {
 
    private Integer command;
 
//    private static int info_number;
    public HexRequest(String topic, String data, boolean encrypt) {
        super(topic, data, encrypt);
    }
 
 
    public HexRequest(int command, byte []fileData, boolean encrypt) {
        this.command = command;
        super.setEncrypt(encrypt);
        super.setData(fileData);
    }
 
    @Override
    public byte [] getSendBytes() {
        return getData();
    }
 
    public String getTopic() {
        return "65531_" + command;
    }
 
    public String getAckTopic() {
        return "65531_" + ++command;
    }
 
}