### 问题描述
我连接mqtt后,订阅会断开连接
Client: Close.
Client:Connect.
array(4) {
["type"]=>
int(1)
["dup"]=>
int(0)
["qos"]=>
int(0)
["retain"]=>
int(0)
}
received length=63
array(4) {
["type"]=>
int(12)
["dup"]=>
int(0)
["qos"]=>
int(0)
["retain"]=>
int(0)
}
received length=2
Client: Close.
Client:Connect.
### 相关代码
```php
function decodeValue($data)
{
return 256 * ord($data[0]) + ord($data[1]);
}
function decodeString($data)
{
$length = decodeValue($data);