MqttEndpoint

MqttEndpoint

MqttEndpoint represents a MQTT endpoint

Constructor

new MqttEndpoint(installationID, host, mqttTopic, username, password, portSSL, portTCP, portWS, portWSS, ttl)

Create a MqttEndpoint.
Properties:
Name Type Description
installationID string ID of the installation.
host string Hostname of the MQTT broker host to connect.
mqttTopic string Topic to subscribe in the MQTT broker.
username string Username to use for connecting to the MQTT broker.
password string Password to use for connecting to the MQTT broker.
portSSL number Port to connect using SSL/TLS.
portTCP number Port to connect using plain TCP.
ttl number The Amount of time in seconds that specifies how long the mqttTopic will be valid, after that the client needs to request new MQTT endpoint info.
Parameters:
Name Type Description
installationID string ID of the installation.
host string Hostname of the MQTT broker host to connect.
mqttTopic string Topic to subscribe in the MQTT broker.
username string Username to use for connecting to the MQTT broker.
password string Password to use for connecting to the MQTT broker.
portSSL number Port to connect using SSL/TLS.
portTCP number Port to connect using plain TCP.
portWS number Port to connect using Web Socket.
portWSS number Port to connect using Web Socket Secure connection.
ttl number The amount of time in seconds that specifies how long the mqttTopic will be valid, after that the client needs to request new MQTT endpoint info.