00_MQTT2_SERVER.pm: fix SUBACK (Forum #122816)

git-svn-id: https://svn.fhem.de/fhem/trunk@24935 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2021-09-08 19:37:59 +00:00
parent 1c07e8df57
commit 89d43b69d9

View File

@ -405,7 +405,7 @@ MQTT2_SERVER_Read($@)
push @ret, ($qos > 1 ? 1 : 0); # max qos supported is 1 push @ret, ($qos > 1 ? 1 : 0); # max qos supported is 1
} }
# SUBACK # SUBACK
MQTT2_SERVER_out($hash, pack("CCnC*", 0x90, 3, $pid, maxNum(@ret)), $dump); MQTT2_SERVER_out($hash, pack("CCnC*", 0x90, 3, $pid, @ret), $dump);
if(!$hash->{answerScheduled}) { if(!$hash->{answerScheduled}) {
$hash->{answerScheduled} = 1; $hash->{answerScheduled} = 1;