@@ -584,9 +584,8 @@ def publish(self, topic, msg, retain=False, qos=0):
584
584
:param str topic: Unique topic identifier.
585
585
:param str,int,float msg: Data to send to the broker.
586
586
:param bool retain: Whether the message is saved by the broker.
587
- :param int qos: Quality of Service level for the message, defaults to
588
- zero. Conventional options are ``0`` (send at most once), ``1``
589
- (send at least once), or ``2`` (send exactly once).
587
+ :param int qos: Quality of Service level for the message, defaults to zero.
588
+
590
589
"""
591
590
self .is_connected ()
592
591
self ._valid_topic (topic )
@@ -665,14 +664,11 @@ def subscribe(self, topic, qos=0):
665
664
This method can subscribe to one topics or multiple topics.
666
665
667
666
:param str,tuple,list topic: Unique MQTT topic identifier string. If
668
- this is a `tuple`, then the tuple should contain topic identifier
667
+ this is a `tuple`, then the tuple should contain topic identifier
669
668
string and qos level integer. If this is a `list`, then each list
670
669
element should be a tuple containing a topic identifier string and
671
670
qos level integer.
672
- :param int qos: Quality of Service level for the topic, defaults to
673
- zero. Conventional options are ``0`` (send at most once), ``1``
674
- (send at least once), or ``2`` (send exactly once).
675
-
671
+ :param int qos: Quality of Service level for the topic, defaults to zero.
676
672
.. note:: Only options ``1`` or ``0`` are QoS levels supported by this library.
677
673
678
674
"""
0 commit comments