Skip to content

Commit

Permalink
Merge pull request #54 from sgtwilko/mosquitto_31
Browse files Browse the repository at this point in the history
Force MQTT protocol version as autodetect fails on the version of …
  • Loading branch information
jim-easterbrook committed Oct 23, 2017
2 parents 83da0a6 + 6391eee commit 0d4d84d
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 @@ -13,6 +13,7 @@ Sabine Tobolka oe1yvw@gmail.com
Markus Birth markus@birth-online.de
Chris Ramsay chris@ramsay-family.net
Christian Benke benkokakao@gmail.com
Ian Wilkinson null@sgtwilko.f9.co.uk

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 @@ -331,7 +331,7 @@ def mqtt_send_data(self, timestamp, prepared_data, ignore_last_update=False):
del prepared_data['retain']
del prepared_data['auth']

mosquitto_client = mosquitto.Mosquitto(client_id)
mosquitto_client = mosquitto.Mosquitto(client_id, protocol=mosquitto.MQTTv31)
if auth:
self.logger.debug("Username and password configured")
if(self.password == "unknown"):
Expand Down

0 comments on commit 0d4d84d

Please sign in to comment.