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

Syntax errors in EmonHubMqttInterfacer #187

Open
delboy711 opened this issue Dec 17, 2022 · 0 comments
Open

Syntax errors in EmonHubMqttInterfacer #187

delboy711 opened this issue Dec 17, 2022 · 0 comments

Comments

@delboy711
Copy link

While commissioning my new emoncms server I came across a couple of syntax errors in EmonHubMqttInterfacer.
In my application I am sending mqtt messages into emonhub for transmission over RF69 radio so am using parts of emonhub most users will not use.

On line 265
payload = msg.payload,decode()
syntax error "NameError: name 'decode' is not defined"

corrected line is
payload = msg.payload.decode()

On line 267
self._log.debug("Nodeid: "+str(nodeid)+" values: "+msg.payload)
syntax error "TypeError: can only concatenate str (not "bytes") to str"

corrected line is
self._log.debug("Nodeid: "+str(nodeid)+" values: "+str(msg.payload))

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

No branches or pull requests

1 participant