You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ This document describes the source code for the `Eclipse Paho <http://eclipse.or
5
5
6
6
This code provides a client class which enable applications to connect to an `MQTT <http://mqtt.org/>`_ broker to publish messages, and to subscribe to topics and receive published messages. It also provides some helper functions to make publishing one off messages to an MQTT server very straightforward.
7
7
8
-
It supports Python 2.7.9+ or 3.5+.
8
+
It supports Python 2.7.9+ or 3.6+.
9
9
10
10
The MQTT protocol is a machine-to-machine (M2M)/"Internet of Things" connectivity protocol. Designed as an extremely lightweight publish/subscribe messaging transport, it is useful for connections with remote locations where a small code footprint is required and/or network bandwidth is at a premium.
11
11
@@ -249,7 +249,7 @@ max_queued_messages_set()
249
249
250
250
Set the maximum number of outgoing messages with QoS>0 that can be pending in the outgoing message queue.
251
251
252
-
Defaults to 0. 0 means unlimited. When the queue is full, any further outgoing messages would be dropped.
252
+
Defaults to 0. 0 means unlimited, but due to implementation currently limited to 65555 (65535 messages in queue + 20 in flight). When the queue is full, any further outgoing messages would be dropped.
253
253
254
254
message_retry_set()
255
255
'''''''''''''''''''
@@ -681,9 +681,13 @@ Returns a MQTTMessageInfo which expose the following attributes and methods:
681
681
``on_publish()`` callback if it is defined. ``wait_for_publish`` may be easier
682
682
depending on your use-case.
683
683
* ``wait_for_publish()`` will block until the message is published. It will
684
-
raise ValueError if the message is not queued (rc == ``MQTT_ERR_QUEUE_SIZE``).
684
+
raise ValueError if the message is not queued (rc ==
685
+
``MQTT_ERR_QUEUE_SIZE``), or a RuntimeError if there was an error when
686
+
publishing, most likely due to the client not being connected.
685
687
* ``is_published`` returns True if the message has been published. It will
686
-
raise ValueError if the message is not queued (rc == ``MQTT_ERR_QUEUE_SIZE``).
688
+
raise ValueError if the message is not queued (rc ==
689
+
``MQTT_ERR_QUEUE_SIZE``), or a RuntimeError if there was an error when
690
+
publishing, most likely due to the client not being connected.
687
691
688
692
A ``ValueError`` will be raised if topic is ``None``, has zero length or is
689
693
invalid (contains a wildcard), if ``qos`` is not one of 0, 1 or 2, or if the
@@ -1173,6 +1177,9 @@ broker, then disconnect with nothing else required.
1173
1177
1174
1178
The two functions provided are ``single()`` and ``multiple()``.
1175
1179
1180
+
Both functions include support for MQTT v5.0, but do not currently let you
1181
+
set any properties on connection or when sending messages.
1182
+
1176
1183
Single
1177
1184
``````
1178
1185
@@ -1266,6 +1273,9 @@ Multiple
1266
1273
1267
1274
Publish multiple messages to a broker, then disconnect cleanly.
1268
1275
1276
+
This function includes support for MQTT v5.0, but does not currently let you
1277
+
set any properties on connection or when sending messages.
0 commit comments