--- 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(