# How to receive data

**URL:** <https://discourse.nodered.org/t/how-to-receive-data/30532>\
**Category:** General\
**Created:** [22 July 2020 08:23 UTC](https://discourse.nodered.org/t/how-to-receive-data/30532 "2020-07-22T08:23:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![perico](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@perico](https://discourse.nodered.org/u/perico)\
**Post date:** [22 July 2020 08:23 UTC](https://discourse.nodered.org/t/how-to-receive-data/30532/1 "2020-07-22T08:23:37Z")

</div>

Good morning,  
I have a gateway which has a connection with node red, I'm receiving data from this gateway correctly, but now my intention is to receive this data to my pc node-red app. How I can connect this two node-reds?

In this picture I'm receiving the data of my gatweay with this Lora node:

 ![Captura1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/1/417a30f8ef227439f30bff6da834e1503908d3d3.png)

In this second picture you can see the nodes that I had to try to connect with the first picture program, or to do i teasily, with my gateway/nodes that i receive.  
 ![Captura2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/e/3e8ed7ef501ab9042168ce53da5e7e518b46f783.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 July 2020 14:50 UTC](https://discourse.nodered.org/t/how-to-receive-data/30532/2 "2020-07-22T14:50:27Z")

</div>

> [@perico](#):
>
> How I can connect this two node-reds

Use MQTT

This should help get you started...

> [@Linking 2 or more instances on a local network](https://discourse.nodered.org/t/linking-2-or-more-instances-on-a-local-network/24879/3):
>
> It would have been easier and more future proofing to read up on MQTT (IMO). Heres the 30sec intro... MQTT is a Client Server publish/subscribe messaging transport protocol. It is light weight, open, simple, and designed so as to be easy to implement" An MQTT client (node-red / IoT sensor / whatever) publishes to an MQTT broker a topic and payload are sent in each publish a topic is a string e.g. "house/bedroom/light" or "machine/1/motor/speed" a payload is anything you want (boolean tr…

---

<div class="post-metadata">

**Author:** ![perico](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@perico](https://discourse.nodered.org/u/perico)\
**Post date:** [22 July 2020 15:14 UTC](https://discourse.nodered.org/t/how-to-receive-data/30532/3 "2020-07-22T15:14:48Z")

</div>

Perfect, I take a look at it. I was trying to connect it with TCP, in a future my intention is to do a OPC UA server to manage the data, but first I need to send the data from my gateway node red app to my computer node-red app.

Thanks Steve.

---

<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:** [20 September 2020 15:19 UTC](https://discourse.nodered.org/t/how-to-receive-data/30532/4 "2020-09-20T15:19:54Z")

</div>

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