# Post Lora message to my server using http request

**URL:** <https://discourse.nodered.org/t/post-lora-message-to-my-server-using-http-request/71503>\
**Category:** General\
**Created:** [30 November 2022 13:18 UTC](https://discourse.nodered.org/t/post-lora-message-to-my-server-using-http-request/71503 "2022-11-30T13:18:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdfran](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Abdfran](https://discourse.nodered.org/u/Abdfran)\
**Post date:** [30 November 2022 13:18 UTC](https://discourse.nodered.org/t/post-lora-message-to-my-server-using-http-request/71503/1 "2022-11-30T13:18:22Z")

</div>

Hello,

I'm very new with the node red.

I want to use node red for pushing lora messages via http request to my server [http://12.230.x.x/energymonotoring/index.php?LoraAuth=Judtn65sd.L](http://12.230.x.x/energymonotoring/index.php?LoraAuth=Judtn65sd.L)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/e/7ece5b3bc67b31cf11188438df5a4ca3980c58c9.png)

In the other side, i'm using a php code to Handler the http resquest, I have a json file that is updated each 10min  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/3/a38c83b081aa1a5daa3f9f4f66bbd9ddb421f495.png)  
but my file is empty  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/9/895aefb632bf2c829865607d9e8245bad0968885.png)

I would like to receive the payload message in my server.  
somebody knows what could be the problem?

Thank you in advance,

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [30 November 2022 13:52 UTC](https://discourse.nodered.org/t/post-lora-message-to-my-server-using-http-request/71503/2 "2022-11-30T13:52:43Z")

</div>

What do you see in the debug nodes?

Also put one debug after the 'lora' node and what do toy see there?

---

<div class="post-metadata">

**Author:** ![Abdfran](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Abdfran](https://discourse.nodered.org/u/Abdfran)\
**Post date:** [30 November 2022 13:58 UTC](https://discourse.nodered.org/t/post-lora-message-to-my-server-using-http-request/71503/3 "2022-11-30T13:58:55Z")

</div>

This what i have in my debug( the msg. payload of my function and the msg.pauload of the http request.)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/3/13c26cdef0b74a699eb16ca1cd463826ed66f28c.png)

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [30 November 2022 14:09 UTC](https://discourse.nodered.org/t/post-lora-message-to-my-server-using-http-request/71503/4 "2022-11-30T14:09:16Z")

</div>

Is the first node a mqtt node? If it is mqtt node have a look, you can set the output format.

Post the JSON from it, or what yo get out of it, using a debug node.

Post you JSON from it using the post format button \</\>

---

<div class="post-metadata">

**Author:** ![Abdfran](https://avatars.discourse-cdn.com/v4/letter/a/3bc359/32.png) [@Abdfran](https://discourse.nodered.org/u/Abdfran)\
**Post date:** [30 November 2022 14:22 UTC](https://discourse.nodered.org/t/post-lora-message-to-my-server-using-http-request/71503/5 "2022-11-30T14:22:00Z")

</div>

The first node is a Lora input nodes, this what i get when i'm using a debug node  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/2/82bf09715bc39e6fe70a82639b365c3b28ed0f41.png)

so for that i'm using a function to decode this message of LoRa.

---

<div class="post-metadata">

**Author:** ![ScheepersJohan](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/scheepersjohan/32/39556_2.png) [@ScheepersJohan](https://discourse.nodered.org/u/ScheepersJohan)\
**Post date:** [30 November 2022 14:29 UTC](https://discourse.nodered.org/t/post-lora-message-to-my-server-using-http-request/71503/6 "2022-11-30T14:29:11Z")

</div>

What lora node is that? The TTN one?

Please read how to post JSON, CODE etc using the \</\> post format buttons

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 January 2023 14:29 UTC](https://discourse.nodered.org/t/post-lora-message-to-my-server-using-http-request/71503/7 "2023-01-29T14:29:25Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
