mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
parent
5d89c9a885
commit
37d910d318
@ -44,6 +44,10 @@ public enum DSMRErrorStatus {
|
||||
* Serial port doesn't support the configured settings.
|
||||
*/
|
||||
PORT_NOT_COMPATIBLE(true),
|
||||
/**
|
||||
* Serial port time out or illegal state.
|
||||
*/
|
||||
PORT_PORT_TIMEOUT(false),
|
||||
/**
|
||||
* Reading data from the serial port failed.
|
||||
*/
|
||||
|
@ -172,6 +172,10 @@ public class DSMRSerialConnector extends DSMRBaseConnector implements SerialPort
|
||||
logger.warn("Possible bug because a new serial port value was set during opening new port.");
|
||||
errorStatus = DSMRErrorStatus.PORT_INTERNAL_ERROR;
|
||||
}
|
||||
} catch (final IllegalStateException ise) {
|
||||
logger.debug("Failed communicating, probably time out", ise);
|
||||
|
||||
errorStatus = DSMRErrorStatus.PORT_PORT_TIMEOUT;
|
||||
} catch (final IOException ioe) {
|
||||
logger.debug("Failed to get inputstream for serialPort", ioe);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user