From 9da03fdc62a5b75776eae6f019cbcd9dc3db273d Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Sat, 16 Oct 2021 14:55:00 +0200 Subject: [PATCH] update topic for ttnv3 --- lgt92.py | 2 +- rhf1s001.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lgt92.py b/lgt92.py index a968cce..53cff76 100644 --- a/lgt92.py +++ b/lgt92.py @@ -27,7 +27,7 @@ OT_TID="dragino" def on_connect_ttn(client, userdata, flags, rc): logging.info("connected to ttn %s - %s", SRC_MQTT_HOST, str(rc)) - client.subscribe("+/devices/+/up") + client.subscribe("v3/+/devices/+/up") def on_connect_ot(client, userdata, flags, rc): logging.info("connected to ot %s - %s", DST_MQTT_HOST, str(rc)) diff --git a/rhf1s001.py b/rhf1s001.py index 3c201a1..f372444 100644 --- a/rhf1s001.py +++ b/rhf1s001.py @@ -18,7 +18,7 @@ DST_INFLUX_DB = os.getenv("DST_INFLUX_DB") def on_connect_ttn(client, userdata, flags, rc): logging.info("connected to ttn %s - %s", SRC_MQTT_HOST, str(rc)) - client.subscribe("+/devices/+/up") + client.subscribe("v3/+/devices/+/up") def on_log(client, userdata, level, buf): logging_level = mqtt.LOGGING_LEVEL[level] @@ -100,4 +100,5 @@ if __name__ == '__main__': except KeyboardInterrupt: client_ttn.disconnect() client_ttn.loop_stop() - logging.info("tschuess") \ No newline at end of file + logging.info("tschuess") +