update topic for ttnv3
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
901bc5a798
commit
9da03fdc62
2
lgt92.py
2
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))
|
||||
|
|
|
@ -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")
|
||||
logging.info("tschuess")
|
||||
|
||||
|
|
Loading…
Reference in New Issue