Hi,
please add an active() method is Server and Serial. This lets the program check the communications state before reading/writing.
for Server.java:
/**
* Return true if this server is still active and hasn't run
* into any trouble.
*/
public boolean active() {
return (thread != null);
}
for Serial.java:
/**
* Return true if this port is still active and hasn't run
* into any trouble.
*/
public boolean active() {
return (port.isOpened());
}
Thank you,
Charles
Hi,
please add an active() method is Server and Serial. This lets the program check the communications state before reading/writing.
for Server.java:
for Serial.java:
Thank you,
Charles