Skip to content

Commit d200095

Browse files
authored
Merge pull request eclipse-paho#899 from figdavi/docs/fix-typo-broker
docs: fix typo broken -> broker in on_connect() and on_publish()
2 parents 614d992 + c8e4507 commit d200095

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/paho/mqtt/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2458,7 +2458,7 @@ def on_connect(self) -> CallbackOnConnect | None:
24582458
:param Client client: the client instance for this callback
24592459
:param userdata: the private user data as set in Client() or user_data_set()
24602460
:param ConnectFlags connect_flags: the flags for this connection
2461-
:param ReasonCode reason_code: the connection reason code received from the broken.
2461+
:param ReasonCode reason_code: the connection reason code received from the broker.
24622462
In MQTT v5.0 it's the reason code defined by the standard.
24632463
In MQTT v3, we convert return code to a reason code, see
24642464
`convert_connack_rc_to_reason_code()`.
@@ -2642,7 +2642,7 @@ def on_publish(self) -> CallbackOnPublish | None:
26422642
:param userdata: the private user data as set in Client() or user_data_set()
26432643
:param int mid: matches the mid variable returned from the corresponding
26442644
`publish()` call, to allow outgoing messages to be tracked.
2645-
:param ReasonCode reason_code: the connection reason code received from the broken.
2645+
:param ReasonCode reason_code: the connection reason code received from the broker.
26462646
In MQTT v5.0 it's the reason code defined by the standard.
26472647
In MQTT v3 it's always the reason code Success
26482648
:parama Properties properties: the MQTT v5.0 properties received from the broker.

0 commit comments

Comments
 (0)