mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[smartmeter] Fix Thing OFFLINE Communication Error due Exception in last PR (#10088)
Fixes #10087 Signed-off-by: Stefan Triller <github@stefantriller.de>
This commit is contained in:
parent
c01f5ceb72
commit
f9fbb765fb
@ -100,7 +100,6 @@ public class Iec62056_21SerialConnector extends ConnectorBase<DataMessage> {
|
|||||||
@Override
|
@Override
|
||||||
public void newDataMessage(@Nullable DataMessage dataMessage) {
|
public void newDataMessage(@Nullable DataMessage dataMessage) {
|
||||||
logger.debug("Datamessage read: {}", dataMessage);
|
logger.debug("Datamessage read: {}", dataMessage);
|
||||||
emitter.onError(new IllegalArgumentException("Error while emitting dataMessage"));
|
|
||||||
emitter.onNext(dataMessage);
|
emitter.onNext(dataMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user