mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-01 01:09:47 +00:00
00_MQTT2_SERVER.pm: fix wrong suback (Forum #104687)
git-svn-id: https://svn.fhem.de/fhem/trunk@20395 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
a61103255a
commit
f20685a362
@ -360,7 +360,7 @@ MQTT2_SERVER_Read($@)
|
||||
push @ret, ($qos > 1 ? 1 : 0); # max qos supported is 1
|
||||
}
|
||||
# SUBACK
|
||||
MQTT2_SERVER_out($hash, pack("CCnC*", 0x90, 3, $pid, @ret), $dump);
|
||||
MQTT2_SERVER_out($hash, pack("CCnC*", 0x90, 3, $pid, maxNum(@ret)), $dump);
|
||||
|
||||
if(!$hash->{answerScheduled}) {
|
||||
$hash->{answerScheduled} = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user