bottombarupdate in case of a new mqtt message

Este commit está contenido en:
root 2023-08-02 13:14:49 +02:00
padre ed1be6be48
commit b178d6ce27

Ver fichero

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