User Tools

Site Tools


mqttclient

MqttClient

This module is a part of the NetHomeServer. The MqttClient subscribes on messages on a MQTT-topic. and can also send MQTT-messages to the server. You need at least one MqttClient-Item configured in order to be able to use any other MQTT-Items.

The MQTT broker can be either locally installed, for example mosquitto, or on a remote machine. For testing purposes, there are open brokers like HiveMQ MQTT Dashboard

Attributes

  • State [get] Current state of the client: “Connected” or “Disconnected”
  • Port [get] [set] port used on MQTT Server, default 1883
  • Address [get] [set] Address of the MQTT Server
  • ClientName [get] [set] MQTT Client name to connect as
  • UserName [get] [set] Username used to log in. If left blank the client will try to connect anonymously
  • Password [get] [set] Password if connecting with username
  • BaseTopic [get] [set] Base topic to subscribe to messages, wildcards allowed

Actions

See also

mqttclient.txt · Last modified: 2018/11/03 02:59 by 127.0.0.1