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 getStatus(Integer deviceNo);//设备状态 CommandResponse sendCommand(Integer deviceNo, StationCommand command);//下发命令 default CommandResponse clearTaskBufferSlot(Integer deviceNo, Integer stationId, Integer slotIdx) { return new CommandResponse(false, "当前连接不支持清理缓存区槽位"); } CommandResponse sendOriginCommand(String address, short[] data);//原始命令 byte[] readOriginCommand(String address, int length);//读取原始数据 }