Skip to content

Commit

Permalink
Merge pull request #37 from matt2005/master
Browse files Browse the repository at this point in the history
fixed mqtt port issue by setting it to an integer
  • Loading branch information
jim-easterbrook committed Feb 19, 2016
2 parents 4cca6a6 + 97cefb4 commit 7e4ae90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/contributors/contributors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Robin Kearney robin@kearney.co.uk
Rod Persky
Morten Høybye Frederiksen morten@mfd-consult.dk
Simon Josefsson simon@josefsson.org
Matthew Hilton matthilton2005@gmail.com

Translators
-----------
Expand Down
2 changes: 1 addition & 1 deletion src/pywws/toservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def mqtt_send_data(self, timestamp, prepared_data, ignore_last_update=False):
"port [%s] with a client_id [%s] and retain is %s",
timestamp.isoformat(' '), topic, hostname, port, client_id, retain)

mosquitto_client.connect(hostname, port)
mosquitto_client.connect(hostname, int(port))
mosquitto_client.publish(topic, json.dumps(prepared_data), retain=retain)

## commented out as sending the data as a json object (above)
Expand Down

0 comments on commit 7e4ae90

Please sign in to comment.