Skip to content

Commit 4e3456c

Browse files
brentrubrentru
authored andcommitted
add blank lines
1 parent ec20990 commit 4e3456c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

adafruit_minimqtt.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def __init__(self, socket, broker, port=None, username=None,
9696
:param str client_id: Optional client identifier, defaults to a unique, generated string.
9797
:param bool is_ssl: Sets a secure or insecure connection with the broker.
9898
:param bool log: Attaches a logger to the MQTT client, defaults to logging level INFO.
99+
99100
"""
100101
# network interface
101102
self._socket = socket
@@ -334,14 +335,17 @@ def publish(self, topic, msg, retain=False, qos=0):
334335
335336
Example of sending an integer, 3, to the broker on topic 'piVal'.
336337
.. code-block:: python
338+
337339
mqtt_client.publish('topics/piVal', 3)
338340
339341
Example of sending a float, 3.14, to the broker on topic 'piVal'.
340342
.. code-block:: python
343+
341344
mqtt_client.publish('topics/piVal', 3.14)
342345
343346
Example of sending a string, 'threepointonefour', to the broker on topic piVal.
344347
.. code-block:: python
348+
345349
mqtt_client.publish('topics/piVal', 'threepointonefour')
346350
347351
"""
@@ -419,18 +423,22 @@ def subscribe(self, topic, qos=0):
419423
420424
Example of subscribing a topic string.
421425
.. code-block:: python
426+
422427
mqtt_client.subscribe('topics/ledState')
423428
424429
Example of subscribing to a topic and setting the qos level to 1.
425430
.. code-block:: python
431+
426432
mqtt_client.subscribe('topics/ledState', 1)
427433
428434
Example of subscribing to topic string and setting qos level to 1, as a tuple.
429435
.. code-block:: python
436+
430437
mqtt_client.subscribe(('topics/ledState', 1))
431438
432439
Example of subscribing to multiple topics with different qos levels.
433440
.. code-block:: python
441+
434442
mqtt_client.subscribe([('topics/ledState', 1), ('topics/servoAngle', 0)])
435443
436444
"""
@@ -487,10 +495,12 @@ def unsubscribe(self, topic):
487495
488496
Example of unsubscribing from a topic string.
489497
.. code-block:: python
498+
490499
mqtt_client.unsubscribe('topics/ledState')
491500
492501
Example of unsubscribing from multiple topics.
493502
.. code-block:: python
503+
494504
mqtt_client.unsubscribe([('topics/ledState'), ('topics/servoAngle')])
495505
496506
"""

0 commit comments

Comments
 (0)