MqttConfig constructor

MqttConfig({
  1. QoS defaultReadQoS = QoS.atMostOnce,
  2. QoS defaultWriteQoS = QoS.atMostOnce,
  3. QoS defaultActionQoS = QoS.atMostOnce,
  4. QoS defaultSubscribeQoS = QoS.atLeastOnce,
  5. Duration readTimeout = defaultReadTimeout,
  6. int keepAlivePeriod = defaultKeepAlivePeriod,
})

Creates a new MqttConfig object.

Implementation

MqttConfig({
  this.defaultReadQoS = QoS.atMostOnce,
  this.defaultWriteQoS = QoS.atMostOnce,
  this.defaultActionQoS = QoS.atMostOnce,
  this.defaultSubscribeQoS = QoS.atLeastOnce,
  this.readTimeout = defaultReadTimeout,
  this.keepAlivePeriod = defaultKeepAlivePeriod,
});