mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
00_MQTT2_CLIENT.pm: try sending the CONNECT msg directly (Forum #92946)
git-svn-id: https://svn.fhem.de/fhem/trunk@18127 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
c406561d4e
commit
cd2c867681
@ -123,7 +123,7 @@ MQTT2_CLIENT_doinit($)
|
|||||||
$hash->{connecting} = 2;
|
$hash->{connecting} = 2;
|
||||||
MQTT2_CLIENT_send($hash,
|
MQTT2_CLIENT_send($hash,
|
||||||
pack("C",0x10).
|
pack("C",0x10).
|
||||||
MQTT2_CLIENT_calcRemainingLength(length($msg)).$msg, 0, 1);
|
MQTT2_CLIENT_calcRemainingLength(length($msg)).$msg, 1, 1); # Forum #92946
|
||||||
RemoveInternalTimer($hash);
|
RemoveInternalTimer($hash);
|
||||||
if($keepalive) {
|
if($keepalive) {
|
||||||
InternalTimer(gettimeofday()+$keepalive,"MQTT2_CLIENT_keepalive",$hash,0);
|
InternalTimer(gettimeofday()+$keepalive,"MQTT2_CLIENT_keepalive",$hash,0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user