You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))
The text was updated successfully, but these errors were encountered:
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))
The text was updated successfully, but these errors were encountered: