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
{{ message }}
Repository navigation
MQTT publisher uses deprecated paho-mqtt v1 callback API #15
mqtt_publisher.py uses the paho-mqtt v1 callback API. pyproject.toml declares paho-mqtt>=2.0.0, which means every user gets the v2 library, but the code talks to it using the old interface. This currently produces a DeprecationWarning on every instantiation and will break when the v1 API is removed.
# Before (v1)self.client=mqtt.Client(client_id=client_id)
# After (v2)self.client=mqtt.Client(
callback_api_version=mqtt.CallbackAPIVersion.VERSION2,
client_id=client_id,
)
Activity
Fix MQTT v2 callback API and disconnect leak (#15, #16)
Merge pull request #32 from xtruan/fix/mqtt-issues-15-16
weslleyspereira commentedon Sep 15, 2026
Should be resolved with #32. Please let us know if not.