Skip to content

Commit

Permalink
Fix language typos.
Browse files Browse the repository at this point in the history
Closes #602.

Also-by: 陳傑夫 <[email protected]>
  • Loading branch information
ralight committed Oct 13, 2021
1 parent 550da7d commit 6151d96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/paho/mqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1859,11 +1859,11 @@ def on_connect(self, func):
flags: response flags sent by the broker
rc: the connection result
reasonCode: the MQTT v5.0 reason code: an instance of the ReasonCode class.
ReasonCode may be compared to interger.
ReasonCode may be compared to integer.
properties: the MQTT v5.0 properties returned from the broker. An instance
of the Properties class.
For MQTT v3.1 and v3.1.1 properties is not provided but for compatibility
with MQTT v5.0, we recommand adding properties=None.
with MQTT v5.0, we recommend adding properties=None.
flags is a dict that contains response flags from the broker:
flags['session present'] - this flag is useful for clients that are
Expand Down Expand Up @@ -1931,7 +1931,7 @@ def on_subscribe(self):

@on_subscribe.setter
def on_subscribe(self, func):
""" Define the suscribe callback implementation.
""" Define the subscribe callback implementation.
Expected signature for MQTT v3.1.1 and v3.1 is:
subscribe_callback(client, userdata, mid, granted_qos)
Expand Down

0 comments on commit 6151d96

Please sign in to comment.