---
title: "paho-mqtt 2.2.0 Breaking Changes on PyPI | Since.dev"
description: "What each paho-mqtt release removed, renamed or changed: 38 breaking changes in 4 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/paho-mqtt
last_updated: 2026-12-04
---

# paho-mqtt breaking changes

paho-mqtt 2.2.0 (November 4, 2026) is its newest release with breaking changes, 7 of them. The first: paho-mqtt 2.2.0 drops support for Python 3.7 and 3.8. Every breaking API change we have recorded in paho-mqtt on PyPI: 38 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.2.0`, released November 4, 2026. [Source repository](https://github.com/eclipse-paho/paho.mqtt.python)

Its 2.2.0 release drops Python 3.7 and [3.8](https://since.dev/calendar/python/3.8.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [2.0.0](#v-2-0-0) to [2.2.0](#v-2-2-0): 13 breaking changes in 2 versions.

## paho-mqtt 2.2.0 breaking changes

paho-mqtt 2.2.0, released November 4, 2026: 7 breaking changes.

- **Removed**  

The release drops support for Python 3.7 and 3.8. Users on those versions must upgrade Python before installing this release. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.2.0)
- **Behavior changed** `Client.callback_api_version`  

Passing a wrong-typed value for the Client callback_api_version parameter now raises TypeError instead of ValueError. Code catching ValueError for this case must catch TypeError. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.2.0)
- **Behavior changed** `max_queued_messages_set`  

Passing a wrong-typed value to max_queued_messages_set now raises TypeError instead of ValueError. Code catching ValueError for this case must catch TypeError. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.2.0)
- **Signature changed** `paho.mqtt.client.Client.will_payload`  

Was will_payload: bytes | None; now will_payload: bytes | bytearray | None. [pypi.org](https://pypi.org/project/paho-mqtt/2.2.0/)
- **Signature changed** `paho.mqtt.client.convert_connack_rc_to_reason_code`  

Was def convert_connack_rc_to_reason_code(connack_code: ConnackCode) -> ReasonCode; now convert_connack_rc_to_reason_code. [pypi.org](https://pypi.org/project/paho-mqtt/2.2.0/)
- **Signature changed** `paho.mqtt.client.SocketLike.send`  

Was def send(self, buffer: bytes) -> int; now def send(self, buffer: bytes | bytearray) -> int. [pypi.org](https://pypi.org/project/paho-mqtt/2.2.0/)
- **Signature changed** `paho.mqtt.properties.readBytes`  

Was def readBytes(buffer); now def readBytes(buffer, maxlen). [pypi.org](https://pypi.org/project/paho-mqtt/2.2.0/)

## paho-mqtt 2.1.0 breaking changes

paho-mqtt 2.1.0, released April 29, 2024: 6 breaking changes.

- **Signature changed** `paho.mqtt.client.Client.__init__`  

Was def \_\_init\_\_(self, callback_api_version: CallbackAPIVersion, client_id: str = '', clean_session: bool | None = None, userdata: Any = None, protocol: int = MQTTv311, transport: Literal\['tcp', 'websockets'\] = 'tcp', reconnect_on_failure... [pypi.org](https://pypi.org/project/paho-mqtt/2.1.0/)
- **Signature changed** `paho.mqtt.client.Client.transport`  

Was transport: Literal\['tcp', 'websockets'\]; now transport: Literal\['tcp', 'websockets', 'unix'\]. [pypi.org](https://pypi.org/project/paho-mqtt/2.1.0/)
- **Signature changed** `paho.mqtt.client.Client.unsubscribe`  

Was def unsubscribe(self, topic: str, properties: Properties | None = None) -> tuple\[MQTTErrorCode, int | None\]; now def unsubscribe(self, topic: str | list\[str\], properties: Properties | None = None) -> tuple\[MQTTErrorCode, int | None\]. [pypi.org](https://pypi.org/project/paho-mqtt/2.1.0/)
- **Signature changed** `paho.mqtt.client.error_string`  

Was def error_string(mqtt_errno: MQTTErrorCode) -> str; now def error_string(mqtt_errno: MQTTErrorCode | int) -> str. [pypi.org](https://pypi.org/project/paho-mqtt/2.1.0/)
- **Signature changed** `paho.mqtt.publish.multiple`  

Was def multiple(msgs: MessagesList, hostname: str = 'localhost', port: int = 1883, client_id: str = '', keepalive: int = 60, will: MessageDict | None = None, auth: AuthParameter | None = None, tls: TLSParameter | None = None, protocol... [pypi.org](https://pypi.org/project/paho-mqtt/2.1.0/)
- **Signature changed** `paho.mqtt.publish.single`  

Was def single(topic: str, payload: paho.PayloadType = None, qos: int = 0, retain: bool = False, hostname: str = 'localhost', port: int = 1883, client_id: str = '', keepalive: int = 60, will: MessageDict | None = None, auth: AuthParameter... [pypi.org](https://pypi.org/project/paho-mqtt/2.1.0/)

## paho-mqtt 2.0.0 breaking changes

paho-mqtt 2.0.0, released February 10, 2024: 14 breaking changes.

- **Removed** `base62`  

Private helpers base62, WebsocketWrapper and ConnectionState were removed from the public interface. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0)
- **Removed** `Client.loop`  

The max_packets argument of loop(), loop_write() and loop_forever() was removed. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0)
- **Removed** `Client.loop_stop`  

The force argument of loop_stop() was removed. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0)
- **Removed** `Client.message_retry_set`  

The message_retry_set() method was removed. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0)
- **Removed** `ConnectionState`  

ConnectionState is no longer exposed. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0)
- **Removed** `WebsocketWrapper`  

WebsocketWrapper is no longer exposed. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0)
- **Behavior changed** `MQTTMessage.dup`  

Code comparing msg.dup == 1 must be changed to a truthiness check. [eclipse.dev](https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html)
- **Behavior changed** `on_connect`  

Reason code comparisons with integer values such as rc == 1 must be replaced with string comparisons. [eclipse.dev](https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html)
- **Behavior changed** `on_publish`  

Under version 2 on_publish takes extra reason_codes and properties arguments; callbacks must be updated. [eclipse.dev](https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html)
- **Signature changed** `Client`  

Client() takes a new first argument callback_api_version; existing code must pass CallbackAPIVersion.VERSION1 to keep old callbacks working. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## paho-mqtt 2.0.0rc2 breaking changes

paho-mqtt 2.0.0rc2, released February 10, 2024: 11 breaking changes.

- **Removed** `Client.loop`  

The max_packets argument of loop(), loop_write() and loop_forever() was removed; drop it from calls. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)
- **Removed** `Client.loop_stop`  

The force argument of loop_stop() was removed; drop it from calls. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)
- **Removed** `Client.message_retry_set`  

The message_retry_set() method was removed. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)
- **Behavior changed** `Client.logger`  

Client gained properties such as logger; a subclass defining the same name will conflict. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)
- **Behavior changed** `Client.loop_stop`  

Returned error codes such as MQTT_ERR_SUCCESS are an IntEnum; code comparing with 'rc is 0' instead of '== 0' may break. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)
- **Behavior changed** `MQTTMessage.dup`  

The dup and retain fields are booleans instead of integers 0 and 1; comparisons like msg.dup == 1 must change. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)
- **Behavior changed** `MQTTMessage.retain`  

The retain field is a boolean instead of integer 0 and 1. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)
- **Behavior changed** `on_connect`  

With MQTTv5 the reason passed to on_connect is always a ReasonCode object, not sometimes an integer. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)
- **Configuration changed**  

Python 2.7, 3.5 and 3.6 are no longer supported; minimum tested version is Python 3.7. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)
- **Signature changed** `Client`  

Client() takes a new first argument callback_api_version; existing code must pass CallbackAPIVersion.VERSION1 to keep old callbacks working. [github.com](https://github.com/eclipse-paho/paho.mqtt.python/releases/tag/v2.0.0rc2)

And 1 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
