Skip to content

Commit b255d62

Browse files
committed
In on_connect() callback, added logging of the flags dictionary, so can see the value of the 'session present' flag
1 parent cad2ab2 commit b255d62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mqtt_client_shell.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def isfloat(value):
6868
# -----------------------------------------------------------------------------
6969
def on_connect(mqttclient, userdata, flags, rc):
7070
userdata.log("on_connect(): result code = {} ({})".format(rc, mqtt.connack_string(rc)))
71+
userdata.log(" flags = {}".format(flags))
7172

7273
def on_disconnect(mqttclient, userdata, rc):
7374
userdata.log("on_disconnect(): result code = {}".format(rc))

0 commit comments

Comments
 (0)