Package gda.device
Interface SerialReaderWriter
public interface SerialReaderWriter
Class to communicate with a Serial device
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidhandleCommand(String command) Handles commands which do not need a reply.sendCommandAndGetReply(String command) Sends a command to the hardware and reads back a data reply.
-
Method Details
-
close
void close() -
handleCommand
Handles commands which do not need a reply.- Parameters:
command- the command to send
-
sendCommandAndGetReply
Sends a command to the hardware and reads back a data reply.- Parameters:
command- the command sent to the hardware- Returns:
- the reply
- Throws:
DeviceException
-