Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/paho/mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2458,7 +2458,7 @@ def on_connect(self) -> CallbackOnConnect | None:
:param Client client: the client instance for this callback
:param userdata: the private user data as set in Client() or user_data_set()
:param ConnectFlags connect_flags: the flags for this connection
:param ReasonCode reason_code: the connection reason code received from the broken.
:param ReasonCode reason_code: the connection reason code received from the broker.
In MQTT v5.0 it's the reason code defined by the standard.
In MQTT v3, we convert return code to a reason code, see
`convert_connack_rc_to_reason_code()`.
Expand Down Expand Up @@ -2642,7 +2642,7 @@ def on_publish(self) -> CallbackOnPublish | None:
:param userdata: the private user data as set in Client() or user_data_set()
:param int mid: matches the mid variable returned from the corresponding
`publish()` call, to allow outgoing messages to be tracked.
:param ReasonCode reason_code: the connection reason code received from the broken.
:param ReasonCode reason_code: the connection reason code received from the broker.
In MQTT v5.0 it's the reason code defined by the standard.
In MQTT v3 it's always the reason code Success
:parama Properties properties: the MQTT v5.0 properties received from the broker.
Expand Down