#
Junjie
4 天以前 a3d44470b704e81d4f66399bed2f37529ddb31be
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);//读取原始数据
}