You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
611 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# mqtt 说明
- <https://pub.dev/packages/mqtt_client>
- 当前版本9.6.7, 更新日期2022/05/05
- 在mqtt/lib/src/utility/mqtt_client_payload_builder.dart添加
```dart
// added by jackning, 2019/12/03
void addProtobuf(Uint8List val) {
_payload!.addAll(val);
}
```
- 修改src/messages/connect/mqtt_client_mqtt_connect_payload.dart注释掉函数 set clientIdentifier限制clientId长度的代码
- 修改lib/mqtt_browser_client.dart,替换 import 'dart:html'; 为 import 'package:universal_html/html.dart';
## TODO
- 搞定继承MqttClientPayloadBuilder之后将mqtt包改为package依赖