| | |
| | | return connectApi.sendOriginCommand(address, data); |
| | | } |
| | | |
| | | public boolean clearTaskBufferSlot(Integer stationId, Integer slotIdx) { |
| | | ZyStationConnectApi connectApi = zyStationConnectApi; |
| | | if (!connected || connecting || connectApi == null) { |
| | | return false; |
| | | } |
| | | CommandResponse response = connectApi.clearTaskBufferSlot(deviceConfig.getDeviceNo(), stationId, slotIdx); |
| | | return response != null && Boolean.TRUE.equals(response.getResult()); |
| | | } |
| | | |
| | | public byte[] readOriginCommand(String address, int length) { |
| | | ZyStationConnectApi connectApi = zyStationConnectApi; |
| | | if (!connected || connecting || connectApi == null) { |