Skip to content
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

Merged
merged 4 commits into from
Oct 6, 2021
Merged

Conversation

RSd108
Copy link
Contributor

@RSd108 RSd108 commented Jun 3, 2021

A configurable clientid is added to mqtt config

This fixes #42 and #43

@TaariqSurtee
Copy link

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`
Copy link

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",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tab vs spaces

@RHeynsZa
Copy link

RHeynsZa commented Jun 7, 2021

It looks correct. I will have to test it.

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 inverter

tanaykumarbera added a commit to tanaykumarbera/docker-voltronic-homeassistant that referenced this pull request Aug 6, 2021
@ned-kelly ned-kelly merged commit 0ddffda into ned-kelly:master Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MQTT spec does not allow slashes and underscores
4 participants