Browse Source

bugfix

master
Tobias Brunner 1 year ago
parent
commit
10f4c22aa4
  1. 2
      lgt92.py
  2. 2
      rhf1s001.py

2
lgt92.py

@ -35,7 +35,7 @@ def on_publish_ot(client, userdata, rc):
def on_log(client, userdata, level, buf):
logging_level = mqtt.LOGGING_LEVEL[level]
logging.log(logging_level, buf)
logging.info("got a log message level %s: %s", str(userdata), level, str(buf))
logging.info("got a log message level %s: %s", level, str(buf))
# The callback for when a PUBLISH message is received from the server.
def on_message_ttn(client, userdata, msg):

2
rhf1s001.py

@ -23,7 +23,7 @@ def on_connect_ttn(client, userdata, flags, rc):
def on_log(client, userdata, level, buf):
logging_level = mqtt.LOGGING_LEVEL[level]
logging.log(logging_level, buf)
logging.info("got a log message level %s: %s", str(userdata), level, str(buf))
logging.info("got a log message level %s: %s", level, str(buf))
# The callback for when a PUBLISH message is received from the server.
def on_message_ttn(client, userdata, msg):

Loading…
Cancel
Save