Skip to content

Commit

Permalink
Compatibility with paho 2+
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Orru <simone.orru@secomind.com>
  • Loading branch information
sorru94 committed Aug 12, 2024
1 parent 1a3c989 commit 50a6dea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion astarte/device/device_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def disconnect(self) -> None:
return

self.__mqtt_client.disconnect()
self.__mqtt_client.loop_stop(force=False)
self.__mqtt_client.loop_stop()

def is_connected(self) -> bool:
"""
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ license = {text = "Apache-2.0"}
dynamic = ["version"]
dependencies = [
"requests>=2.22.0",
"paho-mqtt==1.6.1",
"paho-mqtt>=1.5.1",
"cryptography>=3.2.1",
"bson>=0.5.5",
"PyJWT>=1.7.0",
Expand Down

0 comments on commit 50a6dea

Please sign in to comment.