# How can I test my application by means of seeing the data at my HTTP integration

**URL:** <https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334>\
**Category:** Application Development\
**Created:** [May 25, 2020, 10:46pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334 "2020-05-25T22:46:16Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bubba198](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bubba198/32/45323_2.png) [@bubba198](https://www.thethingsnetwork.org/forum/u/bubba198)\
**Post date:** [May 25, 2020, 10:46pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/1 "2020-05-25T22:46:16Z")

</div>

Hi everyone,

How can I test my application by means of seeing the data at my HTTP integration?

I have a very simple HTTP integration setup but I struggle how to initiate a test (I don’t have a device registered for that app)

The only test I found is below but does not push data via my integration

![image](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/0/c/0c4eda75aa2c7f01e23f4abaa981a1fe3bda6bff.png)

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [May 26, 2020, 6:16am UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/2 "2020-05-26T06:16:52Z")

</div>

The test you found is only to validate the JavaScript code of the application’s Decoder, and its results are only displayed, not handled in any way. Uplinks are sent through a device, not the application.

To test an uplink, add a (dummy) device to your application in TTN Console, and scroll down on its Device Overview page. You’ll see Simulate Uplink:

![Simulate uplink](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/c/9/c9743bae364b2b4b244bec471b9c1b33c87d5c17.png)

This simulated uplink will always have frame counter 0, but will be accepted no matter what: frame counter security violations are simply ignored. (In fact, at this point in the processing chain, no LoRaWAN frame counter checks are done at all; frame counter security [is handled by the broker](https://www.thethingsnetwork.org/docs/network/architecture.html#frame-counter-check-broker), which is not involved when injecting test application payloads.)

Below, the 07:42:35 and 07:42:48 uplinks on port 4 have been simulated for an existing device, but all others are true uplinks (and an OTAA Join) by the actual hardware:

![Device data](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/9/69bbbb13f9f73c1d364e416f2c5b96a8df5775ff.png)

I assume this also works for OTAA devices that have never even joined.

The simulated uplink is also run through the (optional) Decoder in the application’s Payload Formats, and forwarded through the MQTT API and the (optional) Integrations, including the HTTP Integration and the Data Storage Integration. The downlinks in the screenshot have been [scheduled by a Pipedream workflow triggered by the HTTP Integration](https://pipedream.com/@avbentem/ttn-forum-schedule-downlink-after-uplink-p_6lCYmd/readme). For a simulated uplink such scheduled downlinks will be transmitted after a next real uplink.

Note that the details in the MQTT API and HTTP Integration are very limited, especially lacking metadata such as frequency, data rate and any details of the gateway(s). The HTTP Integration payload for a simulated uplink:

```json
{
  "app_id": "arjanvanb-app-ttnode",
  "dev_id": "arjanvanb-ttnode-1",
  "hardware_serial": "0004A30B001C1D1E",
  "port": 4,
  "counter": 0,
  "payload_raw": "EqAAFAjE",
  "payload_fields": {
    "battery": 4768,
    "event": "button",
    "light": 20,
    "temperature": 22.44
  },
  "metadata": {
    "time": "2020-05-26T05:42:35.045417629Z"
  },
  "downlink_url": "https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/arjanvanb-app-ttnode/arjanvanb-http-ttnnode?key=ttn-account-v2.kFd<redacted>Vi_il4"
}

```

For reference, the HTTP Integration payload for a true uplink received by just a single gateway:

```json
{
  "app_id": "arjanvanb-app-ttnode",
  "dev_id": "arjanvanb-ttnode-1",
  "hardware_serial": "0004A30B001C1D1E",
  "port": 3,
  "counter": 2,
  "payload_raw": "EqAAFAkJ",
  "payload_fields": {
    "battery": 4768,
    "event": "motion",
    "light": 20,
    "temperature": 23.13
  },
  "metadata": {
    "time": "2020-05-26T05:42:42.08149377Z",
    "frequency": 867.5,
    "modulation": "LORA",
    "data_rate": "SF7BW125",
    "coding_rate": "4/5",
    "gateways": [
      {
        "gtw_id": "arjanvanb-gw-1",
        "timestamp": 3548004372,
        "time": "2020-05-26T05:42:41Z",
        "channel": 0,
        "rssi": -54,
        "snr": 7.5,
        "rf_chain": 0
      }
    ]
  },
  "downlink_url": "https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/arjanvanb-app-ttnode/arjanvanb-http-ttnnode?key=ttn-account-v2.kFd<redacted>Vi_il4"
}

```

---

<div class="post-metadata">

**Author:** ![bubba198](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/bubba198/32/45323_2.png) [@bubba198](https://www.thethingsnetwork.org/forum/u/bubba198)\
**Post date:** [May 26, 2020, 7:10am UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/3 "2020-05-26T07:10:01Z")

</div>

Thank you - that did it. Great advice. I was able to test my http integration perfectly.

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [May 26, 2020, 3:25pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/4 "2020-05-26T15:25:32Z")

</div>

A post was split to a new topic: [HTTP Integration pushes from European Azure server for application on ttn-handler-us-west?](https://www.thethingsnetwork.org/forum/t/http-integration-pushes-from-european-azure-server-for-application-on-ttn-handler-us-west/37357)

---

<div class="post-metadata">

**Author:** ![Wijnand](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/wijnand/32/39170_2.png) [@Wijnand](https://www.thethingsnetwork.org/forum/u/Wijnand)\
**Post date:** [November 14, 2021, 2:53pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/5 "2021-11-14T14:53:53Z")

</div>

Hello Arjan, is this facility (uplink simulation) also integrated in the new console? Where can I find it? Thanks…

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [November 14, 2021, 6:52pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/6 "2021-11-14T18:52:06Z")

</div>

Sure, it’s still in Devices, now in Messaging:

![V3 Simulate Uplink](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/3/4/34380175a8856a30c7f871d475a28ce0a94a3425.png)

---

<div class="post-metadata">

**Author:** ![Wijnand](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/wijnand/32/39170_2.png) [@Wijnand](https://www.thethingsnetwork.org/forum/u/Wijnand)\
**Post date:** [November 14, 2021, 9:16pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/7 "2021-11-14T21:16:02Z")

</div>

Aha, I found it. Thanks and regards…

---

<div class="post-metadata">

**Author:** ![Wijnand](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/wijnand/32/39170_2.png) [@Wijnand](https://www.thethingsnetwork.org/forum/u/Wijnand)\
**Post date:** [November 15, 2021, 12:12pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/8 "2021-11-15T12:12:40Z")

</div>

I thought to quickly adapt my backend application to the new JSON uplink messages format. Uch… Not really backwards compatible, so back to the beginning for all applications… Keeping people at work is also an art. 😡

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [November 15, 2021, 12:51pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/9 "2021-11-15T12:51:57Z")

</div>

> [@Wijnand](#):
>
> Not really backwards compatible, so back to the beginning for all applications…

That is probably why TTN has been trying to get people to move since march of this year. A decent window of time to schedule the work in…

---

<div class="post-metadata">

**Author:** ![Wijnand](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/wijnand/32/39170_2.png) [@Wijnand](https://www.thethingsnetwork.org/forum/u/Wijnand)\
**Post date:** [November 15, 2021, 3:20pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/10 "2021-11-15T15:20:35Z")

</div>

Not so bad for me, I have plenty of time (I’m retired). But for professionals…?

---

<div class="post-metadata">

**Author:** ![descartes](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/descartes/32/47220_2.png) [@descartes](https://www.thethingsnetwork.org/forum/u/descartes)\
**Post date:** [November 15, 2021, 3:23pm UTC](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334/11 "2021-11-15T15:23:38Z")

</div>

We did it 6 months back:

> **[GitHub - descartes/TheThingsStack-Integration-Starters: Starter / Template...](https://github.com/descartes/TheThingsStack-Integration-Starters)**
>
> Starter / Template code for various The Things Stack (v3) integrations - GitHub - descartes/TheThingsStack-Integration-Starters: Starter / Template code for various The Things Stack (v3) integrations
