mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-22 08:11:44 +00:00
00_MQTT2_SERVER.pm: add more details to keepalive farewell (Forum #93205)
git-svn-id: https://svn.fhem.de/fhem/trunk@17745 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
8b254d7a5b
commit
d92defccd3
@ -40,6 +40,7 @@ MQTT2_SERVER_Initialize($)
|
||||
autocreate
|
||||
disable:0,1
|
||||
disabledForIntervals
|
||||
keepaliveFactor
|
||||
rawEvents
|
||||
sslVersion
|
||||
sslCertPrefix
|
||||
@ -83,7 +84,9 @@ MQTT2_SERVER_keepaliveChecker($)
|
||||
my $cHash = $defs{$clName};
|
||||
next if(!$cHash || !$cHash->{keepalive} ||
|
||||
$now < $cHash->{lastMsgTime}+$cHash->{keepalive}*$multiplier );
|
||||
Log3 $hash, 3, "$hash->{NAME}: $clName left us (keepalive check)";
|
||||
my $msgName = $clName;
|
||||
$msgName .= "/".$cHash->{cid} if($cHash->{cid});
|
||||
Log3 $hash, 3, "$hash->{NAME}: $msgName left us (keepalive check)";
|
||||
CommandDelete(undef, $clName);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user