-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include a clientid in mqtt commands #45
Conversation
It looks correct. I will have to test it. |
@@ -8,12 +8,14 @@ pushMQTTData () { | |||
MQTT_DEVICENAME=`cat /etc/inverter/mqtt.json | jq '.devicename' -r` | |||
MQTT_USERNAME=`cat /etc/inverter/mqtt.json | jq '.username' -r` | |||
MQTT_PASSWORD=`cat /etc/inverter/mqtt.json | jq '.password' -r` | |||
MQTT_CLIENTID=`cat /etc/inverter/mqtt.json | jq '.clientid' -r` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a tab, but the file uses spaces
@@ -5,6 +5,7 @@ | |||
"devicename": "voltronic", | |||
"username": "", | |||
"password": "", | |||
"clientid": "voltronic_bd8041d0cdf131a6ba4e5b3360b8bc5a", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tab vs spaces
I tested on my side, this works, but seems like the underscore had some issues for my broker, so i just set the client to |
A configurable clientid is added to mqtt config
This fixes #42 and #43