@@ -200,7 +200,7 @@ def deinit(self):
200
200
self .disconnect ()
201
201
202
202
def will_set (self , topic = None , payload = None , qos = 0 , retain = False ):
203
- """Sets the last will and testament properties. MUST be called before connect().
203
+ """Sets the last will and testament properties. MUST be called before ` connect()` .
204
204
205
205
:param str topic: MQTT Broker topic.
206
206
:param str payload: Last will disconnection payload.
@@ -681,10 +681,11 @@ def loop_forever(self):
681
681
method if you want to run a program forever.
682
682
Code below a call to this method will NOT execute.
683
683
684
- NOTE: This method is depreciated and will be removed in the
685
- next major release. Please see examples/minimqtt_pub_sub_blocking.py
686
- for an example of creating a blocking loop which can handle wireless
687
- network events.
684
+ .. note:: This method is depreciated and will be removed in the
685
+ next major release. Please see
686
+ `examples/minimqtt_pub_sub_blocking.py <examples.html#basic-forever-loop>`_
687
+ for an example of creating a blocking loop which can handle wireless
688
+ network events.
688
689
"""
689
690
while True :
690
691
if self ._sock .connected :
@@ -835,7 +836,7 @@ def attach_logger(self, logger_name="log"):
835
836
def set_logger_level (self , log_level ):
836
837
"""Sets the level of the logger, if defined during init.
837
838
838
- :param string log_level: Level of logging to output to the REPL.
839
+ :param str log_level: Level of logging to output to the REPL.
839
840
"""
840
841
if self .logger is None :
841
842
raise MMQTTException (
0 commit comments