Skip to content

Commit

Permalink
Fix subAck code error
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Dec 14, 2020
1 parent cf3f042 commit 6bb2287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/server.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@
$payload = [];
foreach ($data['topics'] as $k => $qos) {
if (is_numeric($qos) && $qos < 3) {
$payload[] = chr($qos);
$payload[] = $qos;
} else {
$payload[] = chr(0x80);
$payload[] = 0x80;
}
}
$server->send(
Expand Down

0 comments on commit 6bb2287

Please sign in to comment.