[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:
Stefan Triller 2021-02-08 23:05:10 +01:00 committed by GitHub
parent c01f5ceb72
commit f9fbb765fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,6 @@ public class Iec62056_21SerialConnector extends ConnectorBase<DataMessage> {
@Override
public void newDataMessage(@Nullable DataMessage dataMessage) {
logger.debug("Datamessage read: {}", dataMessage);
emitter.onError(new IllegalArgumentException("Error while emitting dataMessage"));
emitter.onNext(dataMessage);
}