Skip to content

Commit 6151d96

Browse files
committed
Fix language typos.
Closes eclipse-paho#602. Also-by: 陳傑夫 <chienfuchen32@gmail.com>
1 parent 550da7d commit 6151d96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/paho/mqtt/client.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1859,11 +1859,11 @@ def on_connect(self, func):
18591859
flags: response flags sent by the broker
18601860
rc: the connection result
18611861
reasonCode: the MQTT v5.0 reason code: an instance of the ReasonCode class.
1862-
ReasonCode may be compared to interger.
1862+
ReasonCode may be compared to integer.
18631863
properties: the MQTT v5.0 properties returned from the broker. An instance
18641864
of the Properties class.
18651865
For MQTT v3.1 and v3.1.1 properties is not provided but for compatibility
1866-
with MQTT v5.0, we recommand adding properties=None.
1866+
with MQTT v5.0, we recommend adding properties=None.
18671867
18681868
flags is a dict that contains response flags from the broker:
18691869
flags['session present'] - this flag is useful for clients that are
@@ -1931,7 +1931,7 @@ def on_subscribe(self):
19311931

19321932
@on_subscribe.setter
19331933
def on_subscribe(self, func):
1934-
""" Define the suscribe callback implementation.
1934+
""" Define the subscribe callback implementation.
19351935
19361936
Expected signature for MQTT v3.1.1 and v3.1 is:
19371937
subscribe_callback(client, userdata, mid, granted_qos)

0 commit comments

Comments
 (0)