MartinNPN
(Martin Npn)
July 14, 2021, 7:49am
1
Hello,
i’m trying to migrate from v2 to v3, the data of my devices is collected by telegraf and writen to an influx db.
But i’m getting no data, after the change, at the application console i can see the data and the subscription of the application.
I already read:
Hi, this is what I added into my telegraf.conf file , if any help with your issue
[[inputs.mqtt_consumer]]
servers = ["tcp://eu1.cloud.thethings.network:1883"]
qos = 0
connection_timeout = "30s"
topics = [ "v3/bal@ttn/devices/+/up" ]
client_id = "telegraf"
username = "bal@ttn"
password = "NNSXS.***********************************LQ"
data_format = "json"
I’m following the link here: Telegraf Setup for MQTT Integration with InfluxDB Cloud | The Things Stack for LoRaWAN
So I tried to test this on my windows machine, but I gave up because window is stupid.
Anyways, I setup a debian instance and configured telegraf, updated the config (as per the instructions) and ran the service.
The service is working, as far as I can tell:
journalctl tells me it’s connected to ttn
on ttn v3 console, under the live stream, I can see the subscription
I have a…
My config looks like:
[[inputs.mqtt_consumer]]
servers = ["tcp://eu1.cloud.thethings.network:1883"]
qos = 0
connection_timeout = "30s"
topics = [ "v3/+/devices/+/up" ]
client_id = "telegraf"
username = "steval-strkt01-mh@ttn"
password = "****"
data_format = "json"
I also tried to change the topic to:
topics = [ "v3/steval-strkt01-mh@ttn/devices/+/up" ]
Even after i read the documentation i didn’t find anything wrong, can someone give me a tip what is wrong ?
MartinNPN
(Martin Npn)
July 14, 2021, 12:25pm
2
ok, i found the problem, i was looking at the database for the old tags, like payload_, but with v3 they are starting with uplink_message_decoded_payload.
Sorry my fault.