Skip to content

Commit e4769b0

Browse files
committed
Fix compatibility issue with Paho MQTT 1.3.0.
1 parent 9e6b59a commit e4769b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cayenne/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535

3636
# The callback for when the client receives a CONNACK response from the server.
37-
def on_connect(client, cayenne, rc):
37+
def on_connect(client, cayenne, flags, rc):
3838
if rc != 0:
3939
# MQTT broker error codes
4040
broker_errors = {

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@
3636
classifiers = classifiers,
3737
packages = ['cayenne'],
3838
install_requires = [
39-
'paho-mqtt',
39+
'paho-mqtt >= 1.0',
4040
],
4141
)

0 commit comments

Comments
 (0)