-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
1:
I tried to setup a second MQTT connection from the MQTT plugin to The Things Network (TTN). The first connection is to a local 1.3.4 version Mosquitto implementation.
The connection is established but my device isn't receiving any data at all:
14:32:48info [pimatic-mqtt]: Successfully connected to MQTT Broker TTN
14:32:43info [pimatic-mqtt]: Reconnecting to MQTT Broker TTN
14:32:38info [pimatic-mqtt]: MQTT Broker TTN is offline
14:31:07info [pimatic-mqtt]: Successfully connected to MQTT Broker default
Using device:
{
"attributes": [
{
"name": "GPS data",
"topic": "+/devices/+/up/gps_1",
"type": "string",
"messageMap": {}
}
],
"xAttributeOptions": [],
"id": "car-tracker-eugene",
"name": "Car tracker Eugene",
"class": "MqttSensor"
"brokerId": "TTN"
}
Also tried:
topic": "hello_world_test_eug/devices/ttndeviceeug/up/gps_1"
No data at all.
The local broker still produces data for other devices.
While
mosquitto_sub -h eu.thethings.network -t 'hello_world_test_eug/devices/ttndeviceeug/up/gps_1' -u 'xxxxxx' -P 'ttn-account-v2.xxxxxx' -v
produces:
hello_world_test_eug/devices/ttndeviceeug/up/gps_1 {"altitude":72.8,"latitude":50.9471,"longitude":5.7778}
2:
I also upgrades Mosquitto to 1.5.0 version and created a MQTT bridge to TTN, so al the traffic comes to the local broker.
Changes the device to the local broker:
{
"attributes": [
{
"name": "GPS data",
"topic": "+/devices/+/up/gps_1",
"type": "string",
"messageMap": {}
}
],
"xAttributeOptions": [],
"id": "car-tracker-eugene",
"name": "Car tracker Eugene",
"class": "MqttSensor",
}
But also no data.
While:
mosquitto_sub -h 127.0.0.1 -t 'hello_world_test_eug/devices/ttndeviceeug/up/gps_1'-v
produces:
hello_world_test_eug/devices/ttndeviceeug/up/gps_1 {"altitude":72,"latitude":50.9471,"longitude":5.7778}
Who can help me out to debug/solve this issue?