ottopaulsen / MMM-MQTT

MQTT Client module for MagicMirror2
MIT License
57 stars 29 forks source link

Add MQTT ClientId option #47

Closed stevemason closed 3 years ago

stevemason commented 3 years ago

The MQTT client ID is currently set as per the mqtt.js default: 'mqttjs_' + Math.random().toString(16).substr(2, 8)

This change adds the option to specify a custom client ID in the config.js file, if required. This can make it easier to differentiate between clients when looking through the logs of the MQTT broker.