Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT plugin to The Things Network doesn't catch any data #40

Open
edautz opened this issue May 24, 2018 · 0 comments
Open

MQTT plugin to The Things Network doesn't catch any data #40

edautz opened this issue May 24, 2018 · 0 comments
Labels

Comments

@edautz
Copy link

edautz commented May 24, 2018

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants