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:
rudolfkoenig
2019-01-03 18:30:03 +00:00
parent 63a97ef91e
commit 69982216ec

View File

@@ -123,7 +123,7 @@ MQTT2_CLIENT_doinit($)
$hash->{connecting} = 2;
MQTT2_CLIENT_send($hash,
pack("C",0x10).
MQTT2_CLIENT_calcRemainingLength(length($msg)).$msg, 0, 1);
MQTT2_CLIENT_calcRemainingLength(length($msg)).$msg, 1, 1); # Forum #92946
RemoveInternalTimer($hash);
if($keepalive) {
InternalTimer(gettimeofday()+$keepalive,"MQTT2_CLIENT_keepalive",$hash,0);