37_NotifyAndroidTV.pm: added lastError reading

git-svn-id: https://svn.fhem.de/fhem/trunk@16031 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
justme1968
2018-01-28 19:19:58 +00:00
parent 7bc2d7ade1
commit 24c79922dd

View File

@@ -125,6 +125,7 @@ NotifyAndroidTV_parseHttpAnswer($$$)
if( $err ) {
Log3 $name, 2, "NotifyAndroidTV ($name) - got error while sending notificaton $err";
readingsSingleUpdate($hash,"lastError", $err, 1);
if( $param->{cl} && $param->{cl}{canAsyncOutput} ) {
asyncOutput( $param->{cl}, "got error while sending notification $err\n" );
}