MqttMonitor/MqttReasonCodes.py

branch
eric7
changeset 102
70b8858199f5
parent 99
420cb8adbf7e
child 114
8c0e9e602124
--- a/MqttMonitor/MqttReasonCodes.py	Tue Jul 20 18:10:55 2021 +0200
+++ b/MqttMonitor/MqttReasonCodes.py	Wed Jul 21 20:10:36 2021 +0200
@@ -205,6 +205,7 @@
         ): [PacketTypes.SUBACK, PacketTypes.DISCONNECT]},
 }
 
+
 def mqttReasonCode(rc, packetType):
     """
     Function to get the readable reason code string given the result code and
@@ -214,6 +215,8 @@
     @type int
     @param packetType packet type
     @type PacketTypes (= int)
+    @return message associated with the reason code and packet type
+    @rtype str
     """
     if rc not in MqttReasonCodeNames:
         return QCoreApplication.translate(

eric ide

mercurial