bottombarupdate in case of a new mqtt message
Este commit está contenido en:
padre
ed1be6be48
commit
b178d6ce27
@ -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__":
|
||||
|
Cargando…
x
Referencia en una nueva incidencia
Block a user