METADATA 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. Metadata-Version: 2.5
  2. Name: paho-mqtt
  3. Version: 2.2.0
  4. Import-Name: paho
  5. Summary: MQTT version 5.0/3.1.1 client class
  6. Project-URL: Homepage, https://eclipse.org/paho
  7. Project-URL: Documentation, https://eclipse.dev/paho/files/paho.mqtt.python/html/index.html
  8. Project-URL: Source, https://github.com/eclipse-paho/paho.mqtt.python
  9. Project-URL: Issues, https://github.com/eclipse-paho/paho.mqtt.python/issues
  10. Author-email: Roger Light <roger@atchoo.org>
  11. License-Expression: EPL-2.0 OR BSD-3-Clause
  12. License-File: LICENSE.txt
  13. License-File: edl-v10
  14. License-File: epl-v20
  15. Keywords: mqtt,paho
  16. Classifier: Development Status :: 5 - Production/Stable
  17. Classifier: Intended Audience :: Developers
  18. Classifier: Natural Language :: English
  19. Classifier: Operating System :: OS Independent
  20. Classifier: Programming Language :: Python
  21. Classifier: Programming Language :: Python :: 3
  22. Classifier: Programming Language :: Python :: 3.9
  23. Classifier: Programming Language :: Python :: 3.10
  24. Classifier: Programming Language :: Python :: 3.11
  25. Classifier: Programming Language :: Python :: 3.12
  26. Classifier: Programming Language :: Python :: 3.13
  27. Classifier: Programming Language :: Python :: 3.14
  28. Classifier: Programming Language :: Python :: 3.15
  29. Classifier: Topic :: Communications
  30. Classifier: Topic :: Internet
  31. Classifier: Typing :: Typed
  32. Requires-Python: >=3.9
  33. Provides-Extra: proxy
  34. Requires-Dist: pysocks; extra == 'proxy'
  35. Description-Content-Type: text/x-rst
  36. Eclipse Paho™ MQTT Python Client
  37. ================================
  38. The `full documentation is available here <documentation_>`_.
  39. **Warning breaking change** - Release 2.0 contains a breaking change; see the `release notes <https://github.com/eclipse/paho.mqtt.python/releases/tag/v2.0.0>`_ and `migration details <https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html>`_.
  40. This document describes the source code for the `Eclipse Paho <http://eclipse.org/paho/>`_ MQTT Python client library, which implements versions 5.0, 3.1.1, and 3.1 of the MQTT protocol.
  41. This code provides a client class which enables 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.
  42. It supports Python 3.9+.
  43. 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.
  44. Paho is an `Eclipse Foundation <https://www.eclipse.org/org/foundation/>`_ project.
  45. Contents
  46. --------
  47. * Installation_
  48. * `Known limitations`_
  49. * `Usage and API`_
  50. * `Getting Started`_
  51. * `Client`_
  52. * `Network loop`_
  53. * `Callbacks`_
  54. * `Logger`_
  55. * `External event loop support`_
  56. * `Global helper functions`_
  57. * `Publish`_
  58. * `Single`_
  59. * `Multiple`_
  60. * `Subscribe`_
  61. * `Simple`_
  62. * `Using Callback`_
  63. * `Reporting bugs`_
  64. * `More information`_
  65. Installation
  66. ------------
  67. The latest stable version is available in the Python Package Index (PyPi) and can be installed using
  68. ::
  69. pip install paho-mqtt
  70. Or with ``virtualenv``:
  71. ::
  72. virtualenv paho-mqtt
  73. source paho-mqtt/bin/activate
  74. pip install paho-mqtt
  75. To obtain the full code, including examples and tests, you can clone the git repository:
  76. ::
  77. git clone https://github.com/eclipse/paho.mqtt.python
  78. Once you have the code, it can be installed from your repository as well:
  79. ::
  80. cd paho.mqtt.python
  81. pip install -e .
  82. To perform all tests (including MQTT v5 tests), you also need to clone paho.mqtt.testing in paho.mqtt.python folder::
  83. git clone https://github.com/eclipse/paho.mqtt.testing.git
  84. cd paho.mqtt.testing
  85. git checkout a4dc694010217b291ee78ee13a6d1db812f9babd
  86. Known limitations
  87. -----------------
  88. The following are the known unimplemented MQTT features.
  89. When ``clean_session`` is False, the session is only stored in memory and not persisted. This means that
  90. when the client is restarted (not just reconnected, the object is recreated usually because the
  91. program was restarted) the session is lost. This results in a possible message loss.
  92. The following part of the client session is lost:
  93. * QoS 2 messages which have been received from the server, but have not been completely acknowledged.
  94. Since the client will blindly acknowledge any PUBCOMP (last message of a QoS 2 transaction), it
  95. won't hang but will lose this QoS 2 message.
  96. * QoS 1 and QoS 2 messages which have been sent to the server, but have not been completely acknowledged.
  97. This means that messages passed to ``publish()`` may be lost. This could be mitigated by taking care
  98. that all messages passed to ``publish()`` have a corresponding ``on_publish()`` call or use `wait_for_publish`.
  99. It also means that the broker may have the QoS2 message in the session. Since the client starts
  100. with an empty session it don't know it and will reuse the mid. This is not yet fixed.
  101. Also, when ``clean_session`` is True, this library will republish QoS > 0 message across network
  102. reconnection. This means that QoS > 0 message won't be lost. But the standard says that
  103. we should discard any message for which the publish packet was sent. Our choice means that
  104. we are not compliant with the standard and it's possible for QoS 2 to be received twice.
  105. You should set ``clean_session = False`` if you need the QoS 2 guarantee of only one delivery.
  106. Usage and API
  107. -------------
  108. Detailed API documentation `is available online <documentation_>`_ or could be built from ``docs/`` and samples are available in the `examples`_ directory.
  109. The package provides two modules, a full `Client` and few `helpers` for simple publishing or subscribing.
  110. Getting Started
  111. ***************
  112. Here is a very simple example that subscribes to the broker $SYS topic tree and prints out the resulting messages:
  113. .. code:: python
  114. import paho.mqtt.client as mqtt
  115. from paho.mqtt.enums import CallbackAPIVersion
  116. # The callback for when the client receives a CONNACK response from the server.
  117. def on_connect(client, userdata, flags, reason_code, properties):
  118. print(f"Connected with result code {reason_code}")
  119. # Subscribing in on_connect() means that if we lose the connection and
  120. # reconnect then subscriptions will be renewed.
  121. client.subscribe("$SYS/#")
  122. # The callback for when a PUBLISH message is received from the server.
  123. def on_message(client, userdata, msg):
  124. print(msg.topic+" "+str(msg.payload))
  125. mqttc = mqtt.Client(CallbackAPIVersion.VERSION2)
  126. mqttc.on_connect = on_connect
  127. mqttc.on_message = on_message
  128. mqttc.connect("test.mosquitto.org", 1883, 60)
  129. # Blocking call that processes network traffic, dispatches callbacks and
  130. # handles reconnecting.
  131. # Other loop*() functions are available that give a threaded interface and a
  132. # manual interface.
  133. mqttc.loop_forever()
  134. Client
  135. ******
  136. You can use the client class as an instance, within a class or by subclassing. The general usage flow is as follows:
  137. * Create a client instance
  138. * Connect to a broker using one of the ``connect*()`` functions
  139. * Call one of the ``loop*()`` functions to maintain network traffic flow with the broker
  140. * Use ``subscribe()`` to subscribe to a topic and receive messages
  141. * Use ``publish()`` to publish messages to the broker
  142. * Use ``disconnect()`` to disconnect from the broker
  143. Callbacks will be called to allow the application to process events as necessary. These callbacks are described below.
  144. Network loop
  145. ````````````
  146. These functions are the driving force behind the client. If they are not
  147. called, incoming network data will not be processed and outgoing network data
  148. will not be sent. There are four options for managing the
  149. network loop. Three are described here, the fourth in "External event loop
  150. support" below. Do not mix the different loop functions.
  151. loop_start() / loop_stop()
  152. ''''''''''''''''''''''''''
  153. .. code:: python
  154. mqttc.loop_start()
  155. while True:
  156. temperature = sensor.blocking_read()
  157. mqttc.publish("paho/temperature", temperature)
  158. mqttc.loop_stop()
  159. These functions implement a threaded interface to the network loop. Calling
  160. `loop_start()` once, before or after ``connect*()``, runs a thread in the
  161. background to call `loop()` automatically. This frees up the main thread for
  162. other work that may be blocking. This call also handles reconnecting to the
  163. broker. Call `loop_stop()` to stop the background thread.
  164. The loop is also stopped if you call `disconnect()`.
  165. loop_forever()
  166. ''''''''''''''
  167. .. code:: python
  168. mqttc.loop_forever(retry_first_connection=False)
  169. This is a blocking form of the network loop and will not return until the
  170. client calls `disconnect()`. It automatically handles reconnecting.
  171. Except for the first connection attempt when using `connect_async`, use
  172. ``retry_first_connection=True`` to make it retry the first connection.
  173. *Warning*: This might lead to situations where the client keeps connecting to an
  174. non existing host without failing.
  175. loop()
  176. ''''''
  177. .. code:: python
  178. run = True
  179. while run:
  180. rc = mqttc.loop(timeout=1.0)
  181. if rc != 0:
  182. # need to handle error, possible reconnecting or stopping the application
  183. Call regularly to process network events. This call waits in ``select()`` until
  184. the network socket is available for reading or writing, if appropriate, then
  185. handles the incoming/outgoing data. This function blocks for up to ``timeout``
  186. seconds. ``timeout`` must not exceed the ``keepalive`` value for the client or
  187. your client will be regularly disconnected by the broker.
  188. Using this kind of loop, require you to handle reconnection strategie.
  189. Callbacks
  190. `````````
  191. The interface to interact with paho-mqtt include various callback that are called by
  192. the library when some events occur.
  193. The callbacks are functions defined in your code, to implement the require action on those events. This could
  194. be simply printing received message or much more complex behaviour.
  195. Callbacks API is versioned, and the selected version is the `CallbackAPIVersion` you provided to `Client`
  196. constructor. Currently two version are supported:
  197. * ``CallbackAPIVersion.VERSION1``: it's the historical version used in paho-mqtt before version 2.0.
  198. It's the API used before the introduction of `CallbackAPIVersion`.
  199. This version is deprecated and will be removed in paho-mqtt version 3.0.
  200. * ``CallbackAPIVersion.VERSION2``: This version is more consistent between protocol MQTT 3.x and MQTT 5.x. It's also
  201. much more usable with MQTT 5.x since reason code and properties are always provided when available.
  202. It's recommended for all user to upgrade to this version. It's highly recommended for MQTT 5.x user.
  203. The following callbacks exists:
  204. * `on_connect()`: called when the CONNACK from the broker is received. The call could be for a refused connection,
  205. check the reason_code to see if the connection is successful or rejected.
  206. * `on_connect_fail()`: called by `loop_forever()` and `loop_start()` when the TCP connection failed to establish.
  207. This callback is not called when using `connect()` or `reconnect()` directly. It's only called following
  208. an automatic (re)connection made by `loop_start()` and `loop_forever()`
  209. * `on_disconnect()`: called when the connection is closed.
  210. * `on_message()`: called when a MQTT message is received from the broker.
  211. * `on_publish()`: called when an MQTT message was sent to the broker. Depending on QoS level the callback is called
  212. at different moment:
  213. * For QoS == 0, it's called as soon as the message is sent over the network. This could be before the corresponding ``publish()`` return.
  214. * For QoS == 1, it's called when the corresponding PUBACK is received from the broker
  215. * For QoS == 2, it's called when the corresponding PUBCOMP is received from the broker
  216. * `on_subscribe()`: called when the SUBACK is received from the broker
  217. * `on_unsubscribe()`: called when the UNSUBACK is received from the broker
  218. * `on_log()`: called when the library log a message
  219. * `on_socket_open`, `on_socket_close`, `on_socket_register_write`, `on_socket_unregister_write`: callbacks used for external loop support. See below for details.
  220. For the signature of each callback, see the `online documentation <documentation_>`_.
  221. Subscriber example
  222. ''''''''''''''''''
  223. .. code:: python
  224. import paho.mqtt.client as mqtt
  225. from paho.mqtt.enums import CallbackAPIVersion
  226. def on_subscribe(client, userdata, mid, reason_code_list, properties):
  227. # Since we subscribed only for a single channel, reason_code_list contains
  228. # a single entry
  229. if reason_code_list[0].is_failure:
  230. print(f"Broker rejected you subscription: {reason_code_list[0]}")
  231. else:
  232. print(f"Broker granted the following QoS: {reason_code_list[0].value}")
  233. def on_unsubscribe(client, userdata, mid, reason_code_list, properties):
  234. # Be careful, the reason_code_list is only present in MQTTv5.
  235. # In MQTTv3 it will always be empty
  236. if len(reason_code_list) == 0 or not reason_code_list[0].is_failure:
  237. print("unsubscribe succeeded (if SUBACK is received in MQTTv3 it success)")
  238. else:
  239. print(f"Broker replied with failure: {reason_code_list[0]}")
  240. client.disconnect()
  241. def on_message(client, userdata, message):
  242. # userdata is the structure we choose to provide, here it's a list()
  243. userdata.append(message.payload)
  244. # We only want to process 10 messages
  245. if len(userdata) >= 10:
  246. client.unsubscribe("$SYS/#")
  247. def on_connect(client, userdata, flags, reason_code, properties):
  248. if reason_code.is_failure:
  249. print(f"Failed to connect: {reason_code}. loop_forever() will retry connection")
  250. else:
  251. # we should always subscribe from on_connect callback to be sure
  252. # our subscribed is persisted across reconnections.
  253. client.subscribe("$SYS/#")
  254. mqttc = mqtt.Client(CallbackAPIVersion.VERSION2)
  255. mqttc.on_connect = on_connect
  256. mqttc.on_message = on_message
  257. mqttc.on_subscribe = on_subscribe
  258. mqttc.on_unsubscribe = on_unsubscribe
  259. mqttc.user_data_set([])
  260. mqttc.connect("test.mosquitto.org")
  261. mqttc.loop_forever()
  262. print(f"Received the following message: {mqttc.user_data_get()}")
  263. publisher example
  264. '''''''''''''''''
  265. .. code:: python
  266. import time
  267. import paho.mqtt.client as mqtt
  268. from paho.mqtt.enums import CallbackAPIVersion
  269. def on_publish(client, userdata, mid, reason_code, properties):
  270. # reason_code and properties will only be present in MQTTv5. It's always unset in MQTTv3
  271. try:
  272. userdata.remove(mid)
  273. except KeyError:
  274. print("on_publish() is called with a mid not present in unacked_publish")
  275. print("This is due to an unavoidable race-condition:")
  276. print("* publish() return the mid of the message sent.")
  277. print("* mid from publish() is added to unacked_publish by the main thread")
  278. print("* on_publish() is called by the loop_start thread")
  279. print("While unlikely (because on_publish() will be called after a network round-trip),")
  280. print(" this is a race-condition that COULD happen")
  281. print("")
  282. print("The best solution to avoid race-condition is using the msg_info from publish()")
  283. print("We could also try using a list of acknowledged mid rather than removing from pending list,")
  284. print("but remember that mid could be re-used !")
  285. unacked_publish = set()
  286. mqttc = mqtt.Client(CallbackAPIVersion.VERSION2)
  287. mqttc.on_publish = on_publish
  288. mqttc.user_data_set(unacked_publish)
  289. mqttc.connect("test.mosquitto.org")
  290. mqttc.loop_start()
  291. # Our application produce some messages
  292. msg_info = mqttc.publish("paho/test/topic", "my message", qos=1)
  293. unacked_publish.add(msg_info.mid)
  294. msg_info2 = mqttc.publish("paho/test/topic", "my message2", qos=1)
  295. unacked_publish.add(msg_info2.mid)
  296. # Wait for all message to be published
  297. while len(unacked_publish):
  298. time.sleep(0.1)
  299. # Due to race-condition described above, the following way to wait for all publish is safer
  300. msg_info.wait_for_publish()
  301. msg_info2.wait_for_publish()
  302. mqttc.disconnect()
  303. mqttc.loop_stop()
  304. Logger
  305. ``````
  306. The Client emit some log message that could be useful during troubleshooting. The easiest way to
  307. enable logs is the call `enable_logger()`. It's possible to provide a custom logger or let the
  308. default logger being used.
  309. Example:
  310. .. code:: python
  311. import logging
  312. import paho.mqtt.client as mqtt
  313. from paho.mqtt.enums import CallbackAPIVersion
  314. logging.basicConfig(level=logging.DEBUG)
  315. mqttc = mqtt.Client(CallbackAPIVersion.VERSION2)
  316. mqttc.enable_logger()
  317. mqttc.connect("test.mosquitto.org", 1883, 60)
  318. mqttc.loop_start()
  319. # Do additional action needed, publish, subscribe, ...
  320. [...]
  321. It's also possible to define a on_log callback that will receive a copy of all log messages. Example:
  322. .. code:: python
  323. import paho.mqtt.client as mqtt
  324. from paho.mqtt.enums import CallbackAPIVersion
  325. def on_log(client, userdata, paho_log_level, messages):
  326. if paho_log_level == mqtt.LogLevel.MQTT_LOG_ERR:
  327. print(message)
  328. mqttc = mqtt.Client(CallbackAPIVersion.VERSION2)
  329. mqttc.on_log = on_log
  330. mqttc.connect("test.mosquitto.org", 1883, 60)
  331. mqttc.loop_start()
  332. # Do additional action needed, publish, subscribe, ...
  333. [...]
  334. The correspondence with Paho logging levels and standard ones is the following:
  335. ==================== ===============
  336. Paho logging
  337. ==================== ===============
  338. ``MQTT_LOG_ERR`` ``logging.ERROR``
  339. ``MQTT_LOG_WARNING`` ``logging.WARNING``
  340. ``MQTT_LOG_NOTICE`` ``logging.INFO`` *(no direct equivalent)*
  341. ``MQTT_LOG_INFO`` ``logging.INFO``
  342. ``MQTT_LOG_DEBUG`` ``logging.DEBUG``
  343. ==================== ===============
  344. External event loop support
  345. ```````````````````````````
  346. To support other network loop like asyncio (see examples_), the library expose some
  347. method and callback to support those use-case.
  348. The following loop method exists:
  349. * `loop_read`: should be called when the socket is ready for reading.
  350. * `loop_write`: should be called when the socket is ready for writing AND the library want to write data.
  351. * `loop_misc`: should be called every few seconds to handle message retrying and pings.
  352. In pseudo code, it give the following:
  353. .. code:: python
  354. while run:
  355. if need_read:
  356. mqttc.loop_read()
  357. if need_write:
  358. mqttc.loop_write()
  359. mqttc.loop_misc()
  360. if not need_read and not need_write:
  361. # But don't wait more than few seconds, loop_misc() need to be called regularly
  362. wait_for_change_in_need_read_or_write()
  363. updated_need_read_and_write()
  364. The tricky part is implementing the update of need_read / need_write and wait for condition change. To support
  365. this, the following method exists:
  366. * `socket()`: which return the socket object when the TCP connection is open.
  367. This call is particularly useful for select_ based loops. See ``examples/loop_select.py``.
  368. * `want_write()`: return true if there is data waiting to be written. This is close to the
  369. ``need_writew`` of above pseudo-code, but you should also check whether the socket is ready for writing.
  370. * callbacks ``on_socket_*``:
  371. * `on_socket_open`: called when the socket is opened.
  372. * `on_socket_close`: called when the socket is about to be closed.
  373. * `on_socket_register_write`: called when there is data the client want to write on the socket
  374. * `on_socket_unregister_write`: called when there is no more data to write on the socket.
  375. Callbacks are particularly useful for event loops where you register or unregister a socket
  376. for reading+writing. See ``examples/loop_asyncio.py`` for an example.
  377. .. _select: https://docs.python.org/3/library/select.html#select.select
  378. The callbacks are always called in this order:
  379. - `on_socket_open`
  380. - Zero or more times:
  381. - `on_socket_register_write`
  382. - `on_socket_unregister_write`
  383. - `on_socket_close`
  384. Global helper functions
  385. ```````````````````````
  386. The client module also offers some global helper functions.
  387. ``topic_matches_sub(sub, topic)`` can be used to check whether a ``topic``
  388. matches a ``subscription``.
  389. For example:
  390. the topic ``foo/bar`` would match the subscription ``foo/#`` or ``+/bar``
  391. the topic ``non/matching`` would not match the subscription ``non/+/+``
  392. Publish
  393. *******
  394. This module provides some helper functions to allow straightforward publishing
  395. of messages in a one-shot manner. In other words, they are useful for the
  396. situation where you have a single/multiple messages you want to publish to a
  397. broker, then disconnect with nothing else required.
  398. The two functions provided are `single()` and `multiple()`.
  399. Both functions include support for MQTT v5.0, but do not currently let you
  400. set any properties on connection or when sending messages.
  401. Single
  402. ``````
  403. Publish a single message to a broker, then disconnect cleanly.
  404. Example:
  405. .. code:: python
  406. import paho.mqtt.publish as publish
  407. publish.single("paho/test/topic", "payload", hostname="test.mosquitto.org")
  408. Multiple
  409. ````````
  410. Publish multiple messages to a broker, then disconnect cleanly.
  411. Example:
  412. .. code:: python
  413. from paho.mqtt.enums import MQTTProtocolVersion
  414. import paho.mqtt.publish as publish
  415. msgs = [{'topic':"paho/test/topic", 'payload':"multiple 1"},
  416. ("paho/test/topic", "multiple 2", 0, False)]
  417. publish.multiple(msgs, hostname="test.mosquitto.org", protocol=MQTTProtocolVersion.MQTTv5)
  418. Subscribe
  419. *********
  420. This module provides some helper functions to allow straightforward subscribing
  421. and processing of messages.
  422. The two functions provided are `simple()` and `callback()`.
  423. Both functions include support for MQTT v5.0, but do not currently let you
  424. set any properties on connection or when subscribing.
  425. Simple
  426. ``````
  427. Subscribe to a set of topics and return the messages received. This is a
  428. blocking function.
  429. Example:
  430. .. code:: python
  431. import paho.mqtt.subscribe as subscribe
  432. msg = subscribe.simple("paho/test/topic", hostname="test.mosquitto.org")
  433. print("%s %s" % (msg.topic, msg.payload))
  434. Using Callback
  435. ``````````````
  436. Subscribe to a set of topics and process the messages received using a user
  437. provided callback.
  438. Example:
  439. .. code:: python
  440. import paho.mqtt.subscribe as subscribe
  441. def on_message_print(client, userdata, message):
  442. print("%s %s" % (message.topic, message.payload))
  443. userdata["message_count"] += 1
  444. if userdata["message_count"] >= 5:
  445. # it's possible to stop the program by disconnecting
  446. client.disconnect()
  447. subscribe.callback(on_message_print, "paho/test/topic", hostname="test.mosquitto.org", userdata={"message_count": 0})
  448. Reporting bugs
  449. --------------
  450. Please report bugs in the issues tracker at https://github.com/eclipse/paho.mqtt.python/issues.
  451. More information
  452. ----------------
  453. Discussion of the Paho clients takes place on the `Eclipse paho-dev mailing list <https://dev.eclipse.org/mailman/listinfo/paho-dev>`_.
  454. General questions about the MQTT protocol itself (not this library) are discussed in the `MQTT Google Group <https://groups.google.com/forum/?fromgroups#!forum/mqtt>`_.
  455. There is much more information available via the `MQTT community site <http://mqtt.org/>`_.
  456. .. _examples: https://github.com/eclipse/paho.mqtt.python/tree/master/examples
  457. .. _documentation: https://eclipse.dev/paho/files/paho.mqtt.python/html/client.html