kotlin-homie / org.homieiot.mqtt / HomieMqttClient / <init>

<init>

HomieMqttClient(serverURI: String, clientID: String, username: String? = null, password: String? = null, homieRoot: String = "homie", device: Device)

Creates a Homie MQTT client for the supplied org.homieiot.Device

Parameters

serverURI - in the format of tcp://host:port for the MQTT Broker to connect

clientID - Supplied MQTT Client ID

username - Optional username to connect to MQTT

password - Optional password to connect to MQTT