CircuitSetup / Split-Single-Phase-Energy-Meter

Split Single-phase Energy Meter
https://www.crowdsupply.com/circuitsetup/split-single-phase-energy-meter
MIT License
261 stars 57 forks source link

FR: Add ClientId to MQTT #55

Open dimaj opened 3 years ago

dimaj commented 3 years ago

My MQTT broker requires that I specify specific clientId in order to connect. It would be nice if this was supported.

After a quick look, I saw that AsyncMqttClient supports it: https://github.com/marvinroger/async-mqtt-client/blob/develop/docs/2.-API-reference.md#asyncmqttclient-setclientidconst-char-clientid.

I'm happy to file a PR, but I won't be able to test it as I do not have a spare ESP32 at the moment.