MqttTools class

mqtt 数据处理工具

Constructors

MqttTools()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

analyze({required String topic, required String payload}) MqttData?
解析mqtt的数据
calculatedChecksum(dynamic str) → dynamic
计算校验位
createdMqttHex(MqttData mqttData) String
通过mqttData生成mqtt发送的消息
createdReplyData(String replyData, MqttData receiveMqttData) String
回复mqtt的方法 @param replyData 回复的数据 注意必须是16进制字符串 @param receiveMqttData //接受到的mqtt
hex(int c) → dynamic
hexCharCodeToStr2(dynamic data) String
16进制的字符串转成字符串
toUnitList(String str) List<int>
16进制字符串转 List