From 6151d96bb017d4e11901c491a985231a30db06f0 Mon Sep 17 00:00:00 2001 From: Roger Light Date: Wed, 13 Oct 2021 21:20:44 +0100 Subject: [PATCH] Fix language typos. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #602. Also-by: 陳傑夫 --- src/paho/mqtt/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/paho/mqtt/client.py b/src/paho/mqtt/client.py index dc12876..00bb37c 100644 --- a/src/paho/mqtt/client.py +++ b/src/paho/mqtt/client.py @@ -1859,11 +1859,11 @@ class Client(object): 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 @@ -1931,7 +1931,7 @@ class Client(object): @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) -- GitLab