Skip to content

Commit

Permalink
satisfy sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
brentru committed Jun 25, 2020
1 parent 55d85a6 commit 2ce4f09
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions adafruit_minimqtt/adafruit_minimqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,20 @@ def publish(self, topic, msg, retain=False, qos=0):
:param float msg: Data to send to the broker.
:param bool retain: Whether the message is saved by the broker.
:param int qos: Quality of Service level for the message.
Example of sending an integer, 3, to the broker on topic 'piVal'.
.. code-block:: python
mqtt_client.publish('topics/piVal', 3)
Example of sending a float, 3.14, to the broker on topic 'piVal'.
.. code-block:: python
mqtt_client.publish('topics/piVal', 3.14)
Example of sending a string, 'threepointonefour', to the broker on topic piVal.
.. code-block:: python
mqtt_client.publish('topics/piVal', 'threepointonefour')
"""
self.is_connected()
Expand Down

0 comments on commit 2ce4f09

Please sign in to comment.