Skip to content

fix: remove clean_session from MQTT v3.1.1 connect call#105

Open
yoch wants to merge 1 commit into
gavinying:mainfrom
yoch:fix/mqtt-v311-clean-session
Open

fix: remove clean_session from MQTT v3.1.1 connect call#105
yoch wants to merge 1 commit into
gavinying:mainfrom
yoch:fix/mqtt-v311-clean-session

Conversation

@yoch

@yoch yoch commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • Stop passing clean_session to Client.connect() for MQTT v3.1.1
  • paho-mqtt 2.x only accepts clean_session on Client construction (already configured in setup())
  • Fixes immediate crash when connecting to a broker with the default MQTT version

Fixes #103

Test plan

  • pytest tests/test_mqtt_task.py -m "not integration"

Made with Cursor

paho-mqtt 2.x only accepts clean_session on Client construction, not in connect().

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MQTT issue

1 participant