Export Format - Sensor Data

Prev Next

When setting up an export, one of below formats for the message data can be used. It will be a JSON Array. The array will always only contain one element. All values except timestamp (and your custom tags) will be in lower case.

Default

The field payload will contain the binary message data from the sensor, in HEX-format.

[
  {
    "devEui": "70b3d52a1ff00001",
    "sensorType": "other",
    "timestamp": "2023-03-31T07:53:07.886337Z",
    "payload": "1234",
    "spreadingFactor": "7",
    "rssi": "-73",
    "snr": "10",
    "gatewayIdentifier": "506",
    "fPort": "1",
    "latitude": 59.776931,
    "longitude": 14.903832,
    "tags": {
      "building": [
        "A"
      ],
      "type": [
        "MOTION",
        "TEMP"
      ]
    }
  }
]

Default (FCntUp)

Same as above, but field fCntUp added.

[
  {
    "devEui": "70b3d52a1ff00001",
    "sensorType": "other",
    "timestamp": "2023-03-31T07:54:07.984432Z",
    "payload": "1234",
    "fCntUp": 15794,
    "spreadingFactor": "7",
    "rssi": "-70",
    "snr": "10.5",
    "gatewayIdentifier": "506",
    "fPort": "1",
    "latitude": 59.776931,
    "longitude": 14.903832,
    "tags": {
      "building": [
        "A"
      ],
      "type": [
        "MOTION",
        "TEMP"
      ]
    }
  }
]

Default (Message Type)

Same as above, but field messageType added.

[
  {
    "devEui": "70b3d52a1ff00001",
    "sensorType": "other",
    "messageType": "payload",
    "timestamp": "2023-03-31T07:58:08.397376Z",
    "payload": "1234",
    "fCntUp": 15798,
    "spreadingFactor": "7",
    "rssi": "-73",
    "snr": "10.5",
    "gatewayIdentifier": "506",
    "fPort": "1",
    "latitude": 59.776931,
    "longitude": 14.903832,
    "tags": {
      "building": [
        "A"
      ],
      "type": [
        "MOTION",
        "TEMP"
      ]
    }
  }
]

Default (All)

This format is very verbose and additional fields may be added over time.

[
  {
    "devEui": "70b3d52a1ff00001",
    "sensorType": "other",
    "messageType": "payload",
    "timestamp": "2023-03-31T08:00:08.599602Z",
    "payload": "1234",
    "fCntUp": 15800,
    "toa": null,
    "freq": 868300000,
    "batteryLevel": "255",
    "ack": false,
    "spreadingFactor": "7",
    "dr": 5,
    "rssi": "-73",
    "snr": "9.8",
    "gatewayIdentifier": "506",
    "fPort": "1",
    "latitude": 59.776931,
    "longitude": 14.903832,
    "tags": {
      "building": [
        "A"
      ],
      "type": [
        "MOTION",
        "TEMP"
      ]
    },
    "gateways": [
      {
        "rssi": "-73",
        "snr": "9.8",
        "gatewayIdentifier": "506",
        "gwEui": "7276FF0039040879",
        "mac": "7076FF02123C",
        "antenna": 0
      },
      {
        "rssi": "-47",
        "snr": "9.5",
        "gatewayIdentifier": "1789",
        "gwEui": "647FDAFFFE016C40",
        "mac": "647FDA016C40",
        "antenna": 0
      }
    ]
  }
]