MqttData constructor

MqttData({
  1. required String topic,
  2. required String sender,
  3. String? receive,
  4. String start = "EF55",
  5. String? messageNumber,
  6. MqttMessageType? messageType,
  7. String? secretKey,
  8. int? dataLength = 0,
  9. String? data,
  10. String? checkCode,
  11. String? timeout,
  12. String? createdTime,
})

Implementation

MqttData(
    {required this.topic,
    required this.sender,
    this.receive,
    this.start = "EF55",
    this.messageNumber, //消息编码
    this.messageType, //消息类型 00 发送01代表回复消息
    this.secretKey, //密钥验证 aes加密 16个字节
    this.dataLength = 0, //数据长度
    this.data,
    this.checkCode,
    this.timeout,
    this.createdTime});