MqttMonitor/MqttClient.py

changeset 51
b865211461c7
parent 43
a0853f7a8b80
child 63
1004a9b850a9
--- a/MqttMonitor/MqttClient.py	Sat Sep 15 12:12:01 2018 +0200
+++ b/MqttMonitor/MqttClient.py	Sat Sep 15 12:15:25 2018 +0200
@@ -33,6 +33,8 @@
         subscribed to some topics
     @signal onUnsubscribe(mid) emitted after the client has unsubscribed from
         some topics
+    @signal connectTimeout() emitted to indicate, that a connection attempt
+        timed out
     """
     onConnect = pyqtSignal(dict, int)
     onDisconnected = pyqtSignal(int)
@@ -121,7 +123,7 @@
     @pyqtSlot()
     def __connectTimeout(self):
         """
-        Privat slot handling a failed connection attempt.
+        Private slot handling a failed connection attempt.
         """
         self.stopLoop()
         self.connectTimeout.emit()
@@ -266,6 +268,9 @@
         @param bindAddress IP address of a local network interface to bind
             this client to
         @type str
+        @param reinit flag indicating to reinitialize the MQTT client before
+            trying to connect with the given parameters
+        @type bool
         """
         if reinit:
             self.reinitialise()

eric ide

mercurial