#
Junjie
6 天以前 ad43be8dc3263cf0e5e3e2cb8374ef6c95b912e6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.zy.core.network.api;
 
import java.util.List;
 
import com.zy.core.model.CommandResponse;
import com.zy.core.model.command.StationCommand;
import com.zy.core.network.entity.ZyStationStatusEntity;
 
public interface ZyStationConnectApi {
 
    boolean connect();
 
    boolean disconnect();
 
    List<ZyStationStatusEntity> getStatus(Integer deviceNo);//设备状态
 
    CommandResponse sendCommand(Integer deviceNo, StationCommand command);//下发命令
 
    CommandResponse sendOriginCommand(String address, short[] data);//原始命令
 
    byte[] readOriginCommand(String address, int length);//读取原始数据
}