Browse Source

bottombarupdate in case of a new mqtt message

master
root 1 year ago
parent
commit
b178d6ce27
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      mqtt_sniffer.py

+ 2
- 0
mqtt_sniffer.py View File

@@ -1,3 +1,4 @@
1
+import bottombar as bb
1 2
 import argparse
2 3
 from console_bottombar import BottomBar
3 4
 import getpass
@@ -53,6 +54,7 @@ def rx_mqtt(mc, userdata, message):
53 54
                 logfile = open('mqtt_sniffer.log', 'w')
54 55
             logfile.write("%9.04f::%s::%s\n" % (ts, message.topic, data))
55 56
             logfile.flush()
57
+    bb.redraw()
56 58
 
57 59
 
58 60
 if __name__ == "__main__":

Loading…
Cancel
Save