# Application Development

**URL:** https://www.thethingsnetwork.org/forum/c/application-development/15.md?page=4

[Latest](https://www.thethingsnetwork.org/forum/latest.md) · [Categories](https://www.thethingsnetwork.org/forum/categories.md) · [Tags](https://www.thethingsnetwork.org/forum/tags.md)

**Page:** 5

---

## [Field mask not working when retrieving API Keys for an application](https://www.thethingsnetwork.org/forum/t/field-mask-not-working-when-retrieving-api-keys-for-an-application/55303)

<div class="topic-metadata">

**Author:** [@mmijoski](https://www.thethingsnetwork.org/forum/u/mmijoski)\
**Replies:** 3\
**Last updated:** [February 18, 2022, 4:51pm UTC](https://www.thethingsnetwork.org/forum/t/field-mask-not-working-when-retrieving-api-keys-for-an-application/55303 "2022-02-18T16:51:46Z")

</div>

I’m trying to retrieve all API keys of an application by using the list endpoint - /api/v3/applications/{application\_ids.application\_id}/api-keys which does work but for some reason, the key field is not returned in …

---

## [Decoding uint16 sent from Arduino](https://www.thethingsnetwork.org/forum/t/decoding-uint16-sent-from-arduino/55203)

<div class="topic-metadata">

**Author:** [@carlheide](https://www.thethingsnetwork.org/forum/u/carlheide)\
**Replies:** 3\
**Last updated:** [February 15, 2022, 9:11am UTC](https://www.thethingsnetwork.org/forum/t/decoding-uint16-sent-from-arduino/55203 "2022-02-15T09:11:38Z")

</div>

Hello, and sorry for a maybe very beginner question. I’m trying to decode my readings from my temperature sensor. the Arduino code is float temperature = sensors.getTempCByIndex(0); int16\_t temp = (temperature \* 100);…

---

## [Community edition (1.1.8) fnuplinkhandler panic: invalid memory address or nil pointer dereference: errorString](https://www.thethingsnetwork.org/forum/t/community-edition-1-1-8-fnuplinkhandler-panic-invalid-memory-address-or-nil-pointer-dereference-errorstring/55105)

<div class="topic-metadata">

**Author:** [@plmwd](https://www.thethingsnetwork.org/forum/u/plmwd)\
**Replies:** 2\
**Last updated:** [February 10, 2022, 6:53pm UTC](https://www.thethingsnetwork.org/forum/t/community-edition-1-1-8-fnuplinkhandler-panic-invalid-memory-address-or-nil-pointer-dereference-errorstring/55105 "2022-02-10T18:53:33Z")

</div>

Hi, I was going through the tutorial for the AWS IoT Core integration for the community edition, and I came across a panic when the uplink handler function was being executed. I have not deviated from the tutorial, and …

---

## [Downlink payload formatter (JavaScript) - V3](https://www.thethingsnetwork.org/forum/t/downlink-payload-formatter-javascript-v3/50440)

<div class="topic-metadata">

**Author:** [@leo73745](https://www.thethingsnetwork.org/forum/u/leo73745)\
**Replies:** 4\
**Last updated:** [February 10, 2022, 8:21am UTC](https://www.thethingsnetwork.org/forum/t/downlink-payload-formatter-javascript-v3/50440 "2022-02-10T08:21:32Z")

</div>

Hello all, I’m using the following function to encode my downlink: function encodeDownlink(input) { var bytes = \[\]; if (input.data.state1 == "false"){ bytes\[0\] = 0; } else if (input.data.state1 == …

---

## [Azure IoT Hub Integration](https://www.thethingsnetwork.org/forum/t/azure-iot-hub-integration/55038)

<div class="topic-metadata">

**Author:** [@msborama](https://www.thethingsnetwork.org/forum/u/msborama)\
**Replies:** 0\
**Last updated:** [February 8, 2022, 3:02am UTC](https://www.thethingsnetwork.org/forum/t/azure-iot-hub-integration/55038 "2022-02-08T03:02:12Z")

</div>

Hi LoRa lovers, I have been integrating IoT hub with TTS with some success. I can create end devices from either TTS or IoT hub and they are replicated as expected. I can also see receive uplink messages on IoT hub an…

---

## [What is the protocol between the gateway and the server application?](https://www.thethingsnetwork.org/forum/t/what-is-the-protocol-between-the-gateway-and-the-server-application/55002)

<div class="topic-metadata">

**Author:** [@scottsmith](https://www.thethingsnetwork.org/forum/u/scottsmith)\
**Replies:** 8\
**Last updated:** [February 6, 2022, 6:06pm UTC](https://www.thethingsnetwork.org/forum/t/what-is-the-protocol-between-the-gateway-and-the-server-application/55002 "2022-02-06T18:06:09Z")

</div>

Hi, I have written a TCP/IP server many years ago and have many connections from various sensors (using GPRS/3G/WiFI etc…). I want to add a lorawan gateway to it, anyone point me in the direction where to get informatio…

---

## [Selecting preferred LoRaWAN network?](https://www.thethingsnetwork.org/forum/t/selecting-preferred-lorawan-network/54901)

<div class="topic-metadata">

**Author:** [@tibhel](https://www.thethingsnetwork.org/forum/u/tibhel)\
**Replies:** 13\
**Last updated:** [February 2, 2022, 3:35pm UTC](https://www.thethingsnetwork.org/forum/t/selecting-preferred-lorawan-network/54901 "2022-02-02T15:35:34Z")

</div>

Hi! I’m trying to find a way of prioritising selection of LoRaWAN network depending on coverage and cost for a specific end-device. Lets say that I have an OTAA end-device and I’m registering it in an app. The app prov…

---

## [Firebase / HTTP integration](https://www.thethingsnetwork.org/forum/t/firebase-http-integration/51100)

<div class="topic-metadata">

**Author:** [@fergocen](https://www.thethingsnetwork.org/forum/u/fergocen)\
**Replies:** 1\
**Last updated:** [January 31, 2022, 9:27pm UTC](https://www.thethingsnetwork.org/forum/t/firebase-http-integration/51100 "2022-01-31T21:27:52Z")

</div>

I want to post/put uplink data from my TTN app to firebase real time database using HTTP integration. Can anyone tell me how to do that?

---

## [Pulling sensor data with node.js mqtt library](https://www.thethingsnetwork.org/forum/t/pulling-sensor-data-with-node-js-mqtt-library/54484)

<div class="topic-metadata">

**Author:** [@maherx](https://www.thethingsnetwork.org/forum/u/maherx)\
**Replies:** 0\
**Last updated:** [January 13, 2022, 7:34pm UTC](https://www.thethingsnetwork.org/forum/t/pulling-sensor-data-with-node-js-mqtt-library/54484 "2022-01-13T19:34:10Z")

</div>

They removed support for node.js with v3. So I connected to mqtt server with node.js using mqtt library. But I am not able to pull the sensor data. I’m wondering if anyone has used the mqtt library before. You can see my…

---

## [Application / Integration Cookbook](https://www.thethingsnetwork.org/forum/t/application-integration-cookbook/54274)

<div class="topic-metadata">

**Author:** [@htdvisser](https://www.thethingsnetwork.org/forum/u/htdvisser)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 10:26am UTC](https://www.thethingsnetwork.org/forum/t/application-integration-cookbook/54274 "2022-01-10T10:26:50Z")

</div>

As a little side-project next to my work on The Things Stack, I recently started working on something I’m calling “The Things Stack Application Cookbook”. The idea is that it becomes a repository of what I believe to be …

---

## [Some confusion around Azure IoT Hub integration and device creation](https://www.thethingsnetwork.org/forum/t/some-confusion-around-azure-iot-hub-integration-and-device-creation/54041)

<div class="topic-metadata">

**Author:** [@kamnxt](https://www.thethingsnetwork.org/forum/u/kamnxt)\
**Replies:** 0\
**Last updated:** [December 22, 2021, 1:07pm UTC](https://www.thethingsnetwork.org/forum/t/some-confusion-around-azure-iot-hub-integration-and-device-creation/54041 "2021-12-22T13:07:59Z")

</div>

Hi! I’m trying to use the Azure IoT integration, but I’m slightly confused about what the intended workflow for creating devices is. The “managing devices” page says that devices created in Azure should sync to TTS: T…

---

## [MQTT Topic TTN](https://www.thethingsnetwork.org/forum/t/mqtt-topic-ttn/53682)

<div class="topic-metadata">

**Author:** [@0815](https://www.thethingsnetwork.org/forum/u/0815)\
**Replies:** 55\
**Last updated:** [December 17, 2021, 6:32am UTC](https://www.thethingsnetwork.org/forum/t/mqtt-topic-ttn/53682 "2021-12-17T06:32:33Z")

</div>

Hi, I’m trying to import the distance measurement from my LDDS75 ultrasonic sensor into Node-red via MQTT. It is working but I want to specify which measurements are being imported into Node-red in the first place. I …

---

## [Laird RS1xx payload format](https://www.thethingsnetwork.org/forum/t/laird-rs1xx-payload-format/19313)

<div class="topic-metadata">

**Author:** [@crmrosa](https://www.thethingsnetwork.org/forum/u/crmrosa)\
**Replies:** 16\
**Last updated:** [December 15, 2021, 7:55pm UTC](https://www.thethingsnetwork.org/forum/t/laird-rs1xx-payload-format/19313 "2021-12-15T19:55:26Z")

</div>

After the RS1xx send a payload informing the firmware update, the payload began to be sent. But the information in the payload isn´t making sense: { "AlarmMsgCount": 31237, "BatteryCapacity": "80-100%", "BcklogMsg…

---

## [Authenticate and Query JSON data from Storage integration into Flutter](https://www.thethingsnetwork.org/forum/t/authenticate-and-query-json-data-from-storage-integration-into-flutter/49743)

<div class="topic-metadata">

**Author:** [@j45p41](https://www.thethingsnetwork.org/forum/u/j45p41)\
**Replies:** 1\
**Last updated:** [July 13, 2021, 2:58pm UTC](https://www.thethingsnetwork.org/forum/t/authenticate-and-query-json-data-from-storage-integration-into-flutter/49743 "2021-07-13T14:58:27Z")

</div>

Hi, first of all, love this thriving community. I am an entrepreneur trying to wear many hats. I have a device which is generating traffic and an active storage integration. Ultimately I would like a flutter app coded …

---

## [Error: Disconnected from MQTT broker](https://www.thethingsnetwork.org/forum/t/error-disconnected-from-mqtt-broker/53659)

<div class="topic-metadata">

**Author:** [@UtkarshPanara](https://www.thethingsnetwork.org/forum/u/UtkarshPanara)\
**Replies:** 0\
**Last updated:** [December 6, 2021, 8:11am UTC](https://www.thethingsnetwork.org/forum/t/error-disconnected-from-mqtt-broker/53659 "2021-12-06T08:11:31Z")

</div>

I am using Node-red to listen the data form The things stack (LoRa) with MQTT node and then save the data to SQL and showing it on Dashboard. The integration works fine but every night node red stops running with the er…

---

## [Unable to receive Downlink Message](https://www.thethingsnetwork.org/forum/t/unable-to-receive-downlink-message/53608)

<div class="topic-metadata">

**Author:** [@GideonTay](https://www.thethingsnetwork.org/forum/u/GideonTay)\
**Replies:** 3\
**Last updated:** [December 4, 2021, 11:26am UTC](https://www.thethingsnetwork.org/forum/t/unable-to-receive-downlink-message/53608 "2021-12-04T11:26:38Z")

</div>

I am a beginner in doing LoRa projects and using TTN and would really appreciate any help I can get. I am trying to connect my device to TTN. Despite various attempts to, I am still failing. I am using an Arduino MKR WA…

---

## [TTN, influxdb, telegraf topic problem](https://www.thethingsnetwork.org/forum/t/ttn-influxdb-telegraf-topic-problem/53473)

<div class="topic-metadata">

**Author:** [@0815](https://www.thethingsnetwork.org/forum/u/0815)\
**Replies:** 3\
**Last updated:** [November 28, 2021, 12:23pm UTC](https://www.thethingsnetwork.org/forum/t/ttn-influxdb-telegraf-topic-problem/53473 "2021-11-28T12:23:01Z")

</div>

Hello, I’m trying to export the Data from my LDDS-75 to Influxdb via telegraf and MQTT. Everything is working… “okay” but there is one BIG problem. The one number I need is not being imported into influx via the MQTT\_c…

---

## [Decoding a float value in a payload function](https://www.thethingsnetwork.org/forum/t/decoding-a-float-value-in-a-payload-function/4395)

<div class="topic-metadata">

**Author:** [@erikHouten](https://www.thethingsnetwork.org/forum/u/erikHouten)\
**Replies:** 31\
**Last updated:** [November 17, 2021, 11:12am UTC](https://www.thethingsnetwork.org/forum/t/decoding-a-float-value-in-a-payload-function/4395 "2021-11-17T11:12:29Z")

</div>

I recently made my first node for the TTN network using this guide: https://www.thethingsnetwork.org/forum/t/how-to-build-your-first-ttn-node-arduino-rn2483/1574/1 and the sample code from https://github.com/jpmeijers/RN…

---

## [Access Key for Application Manager API](https://www.thethingsnetwork.org/forum/t/access-key-for-application-manager-api/35134)

<div class="topic-metadata">

**Author:** [@czuvich](https://www.thethingsnetwork.org/forum/u/czuvich)\
**Replies:** 4\
**Last updated:** [November 16, 2021, 5:14pm UTC](https://www.thethingsnetwork.org/forum/t/access-key-for-application-manager-api/35134 "2021-11-16T17:14:14Z")

</div>

Where is the access key I can use to authenticate against the Application Manager API over REST? I can see access keys https://console.thethingsnetwork.org/applications/xxx/settings/access-keys, but the value isn’t visi…

---

## [How can I test my application by means of seeing the data at my HTTP integration](https://www.thethingsnetwork.org/forum/t/how-can-i-test-my-application-by-means-of-seeing-the-data-at-my-http-integration/37334)

<div class="topic-metadata">

**Author:** [@bubba198](https://www.thethingsnetwork.org/forum/u/bubba198)\
**Replies:** 9\
**Last updated:** [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 "2021-11-15T15:23:38Z")

</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 tha…

---

## [API Integration For PHP Web Application](https://www.thethingsnetwork.org/forum/t/api-integration-for-php-web-application/53035)

<div class="topic-metadata">

**Author:** [@AbhipsitaTechnologie](https://www.thethingsnetwork.org/forum/u/AbhipsitaTechnologie)\
**Replies:** 0\
**Last updated:** [November 9, 2021, 4:26pm UTC](https://www.thethingsnetwork.org/forum/t/api-integration-for-php-web-application/53035 "2021-11-09T16:26:14Z")

</div>

I want to develop a PHP dashboard application using ttn API. Can someone help how to retrieve all the data using this api?

---

## [Find a downlink airtime of gateways](https://www.thethingsnetwork.org/forum/t/find-a-downlink-airtime-of-gateways/52869)

<div class="topic-metadata">

**Author:** [@Marabu](https://www.thethingsnetwork.org/forum/u/Marabu)\
**Replies:** 9\
**Last updated:** [November 9, 2021, 4:22pm UTC](https://www.thethingsnetwork.org/forum/t/find-a-downlink-airtime-of-gateways/52869 "2021-11-09T16:22:19Z")

</div>

Hello everybody, I would like to find downlink airtimes of gateways for an assessment of keeping of the duty cycle rule. I am using MQTT API V3. Response to the subscribed topic v3/{application id}@{tenant id}/devices…

---

## [Thingsboard CE Connector](https://www.thethingsnetwork.org/forum/t/thingsboard-ce-connector/52843)

<div class="topic-metadata">

**Author:** [@andonoc](https://www.thethingsnetwork.org/forum/u/andonoc)\
**Replies:** 0\
**Last updated:** [November 1, 2021, 8:35pm UTC](https://www.thethingsnetwork.org/forum/t/thingsboard-ce-connector/52843 "2021-11-01T20:35:30Z")

</div>

I connected a Application to Thingsboard via Thingsboard-Gateway via MQTT and now i m struggling connecting a second application. In the mqtt.json file i put in the credentials of the Application, so maybe it is possibl…

---

## [Node-Red Decoder](https://www.thethingsnetwork.org/forum/t/node-red-decoder/52742)

<div class="topic-metadata">

**Author:** [@Johan\_Scheepers](https://www.thethingsnetwork.org/forum/u/Johan_Scheepers)\
**Replies:** 0\
**Last updated:** [October 28, 2021, 10:17am UTC](https://www.thethingsnetwork.org/forum/t/node-red-decoder/52742 "2021-10-28T10:17:56Z")

</div>

Hi, For those that don’t want to or the decoder for your node is a bit big you can also decode your payload in you local application. You can add and modify the flow below to your Node-Red flow. I use it where I want …

---

## [V3 using MQTT to Downlink from NodeRED](https://www.thethingsnetwork.org/forum/t/v3-using-mqtt-to-downlink-from-nodered/52629)

<div class="topic-metadata">

**Author:** [@simmoinard](https://www.thethingsnetwork.org/forum/u/simmoinard)\
**Replies:** 2\
**Last updated:** [October 23, 2021, 2:51pm UTC](https://www.thethingsnetwork.org/forum/t/v3-using-mqtt-to-downlink-from-nodered/52629 "2021-10-23T14:51:54Z")

</div>

Hi guys, this is something that has been already discussed in this forum but even with the posts that i found that talks about this, I cannot success to downlink a message using NodeRed with the “MQTT out” node. I can …

---

## [Can an uplink/downlink operation be "atomic"?](https://www.thethingsnetwork.org/forum/t/can-an-uplink-downlink-operation-be-atomic/52605)

<div class="topic-metadata">

**Author:** [@ScottPorter](https://www.thethingsnetwork.org/forum/u/ScottPorter)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 1:27pm UTC](https://www.thethingsnetwork.org/forum/t/can-an-uplink-downlink-operation-be-atomic/52605 "2021-10-22T13:27:00Z")

</div>

I’m currently sending test data across from a custom board to my server using a webhook. All good so far. For my application it would be good if I can send a downlink message immediately to respond to an uplink. If I rec…

---

## [Payload decoding results in empty field](https://www.thethingsnetwork.org/forum/t/payload-decoding-results-in-empty-field/45430)

<div class="topic-metadata">

**Author:** [@whatthebyrd](https://www.thethingsnetwork.org/forum/u/whatthebyrd)\
**Replies:** 17\
**Last updated:** [October 14, 2021, 10:29pm UTC](https://www.thethingsnetwork.org/forum/t/payload-decoding-results-in-empty-field/45430 "2021-10-14T22:29:11Z")

</div>

Hello all, I’m in the process of completing a migration from the V2 servers to V3 and while I don’t think my issue has to do directly with the migration, if I need to post this under the V2 to V3 migration, I can. Ever…

---

## [Create a downlink from a webhook](https://www.thethingsnetwork.org/forum/t/create-a-downlink-from-a-webhook/51954)

<div class="topic-metadata">

**Author:** [@Migue\_Ventum](https://www.thethingsnetwork.org/forum/u/Migue_Ventum)\
**Replies:** 0\
**Last updated:** [September 29, 2021, 11:00am UTC](https://www.thethingsnetwork.org/forum/t/create-a-downlink-from-a-webhook/51954 "2021-09-29T11:00:58Z")

</div>

Hello everybody, I am having issues to send the post with the downlink information from my server to ttn, i have already create the application with two end devices that work properly, but now i want to be able to send …

---

## [Integration](https://www.thethingsnetwork.org/forum/t/integration/47851)

<div class="topic-metadata">

**Author:** [@afsaneh\_akhbari](https://www.thethingsnetwork.org/forum/u/afsaneh_akhbari)\
**Replies:** 6\
**Last updated:** [September 7, 2021, 1:00pm UTC](https://www.thethingsnetwork.org/forum/t/integration/47851 "2021-09-07T13:00:25Z")

</div>

hi I have searched a lot to find an integration which can show me rssi and snr value changes for temperature ane humidity live values I am using thethings speak but for rssi and snr I could find anything

---

## [Decode float sent by Lopy as Node](https://www.thethingsnetwork.org/forum/t/decode-float-sent-by-lopy-as-node/8757)

<div class="topic-metadata">

**Author:** [@kots](https://www.thethingsnetwork.org/forum/u/kots)\
**Replies:** 8\
**Last updated:** [September 1, 2021, 9:59pm UTC](https://www.thethingsnetwork.org/forum/t/decode-float-sent-by-lopy-as-node/8757 "2021-09-01T21:59:34Z")

</div>

Hello everyone! I am sending my data from my lopy to my gateway using struct.pack('d',data) to make them bytes. Now, how can i decode them from Hexadecimal back to float? I found some functions in javascript but none o…

[Previous page](https://www.thethingsnetwork.org/forum/c/application-development/15.md?page=3)

[Next page](https://www.thethingsnetwork.org/forum/c/application-development/15.md?page=5)
