message: fix: respect the qos+retain config
diff: @@ -64,8 +64,8 @@ function init (config) {
  will: {
  topic: this.getClientTopic(),
  payload: JSON.stringify({ value: false }),
  - qos: 1,
  - retain: true
  + qos: this.config.qos,
  + retain: this.config.retain
  }
  }
  @@ -278,7 +278,7 @@ MqttClient.prototype.getStatus = function () {
  */
  MqttClient.prototype.updateClientStatus = function (connected, ...devices) {
  if (this.client) {
  - this.client.publish(this.getClientTopic(...devices), JSON.stringify({ value: connected, time: Date.now() }), { retain: true, qos: 1 })
  + this.client.publish(this.getClientTopic(...devices), JSON.stringify({ value: connected, time: Date.now() }), { retain: this.config.retain, qos: this.config.qos })
  }
  }
  