2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-22 08:11:44 +00:00

36_WMBUS: better error message if received data is too short

git-svn-id: https://svn.fhem.de/fhem/trunk@15407 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
kaihs 2017-11-07 19:33:20 +00:00
parent 1d74619c0a
commit 3627314f74

View File

@ -100,7 +100,11 @@ WMBUS_Define($$)
}
WMBUS_SetRSSI($hash, $mb, $rssi);
} else {
return "failed to parse msg: $mb->{errormsg}";
my $error = "failed to parse msg: $mb->{errormsg}";
if ($mb->{errorcode} == WMBus::ERR_MSG_TOO_SHORT && $hash->{MessageEncoding} eq 'CUL') {
$error .= ". Please make sure that TTY_BUFSIZE in culfw is at least two times the message length + 1";
}
return $error;
}
} else {