# Node Red running in PC want to send data from raspberry pi

**URL:** https://discourse.nodered.org/t/node-red-running-in-pc-want-to-send-data-from-raspberry-pi/49094
**Category:** General
**Created:** [29 July 2021 19:43 UTC](https://discourse.nodered.org/t/node-red-running-in-pc-want-to-send-data-from-raspberry-pi/49094 "2021-07-29T19:43:11Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![motosierra1141](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/motosierra1141/32/43434_2.png) [@motosierra1141](https://discourse.nodered.org/u/motosierra1141)
#### Post date: [29 July 2021 19:43 UTC](https://discourse.nodered.org/t/node-red-running-in-pc-want-to-send-data-from-raspberry-pi/49094/1 "2021-07-29T19:43:11Z")

</div>

Hello Everyone i have a problem, im running node red in a desktop pc in a lan network, in this lan networks are connected Siemens PLCs that connect to node red trough S7 node, now im running a python script in a raspberry pi, i connect the raspberry pi to the lan network where all my PLC and node red are running, somebody know how can i send data from the raspberry pi to node red, or how can i read data from the raspberry pi with node red

---

<div class="post-metadata">

### Author: ![MecatronicaMADE](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@MecatronicaMADE](https://discourse.nodered.org/u/MecatronicaMADE)
#### Post date: [29 July 2021 19:54 UTC](https://discourse.nodered.org/t/node-red-running-in-pc-want-to-send-data-from-raspberry-pi/49094/2 "2021-07-29T19:54:58Z")

</div>

Hi @motosierra1141. Welcome to our community!! You could try with MQTT to read data, you should install a MQTT BROKER to can publish data from the raspberry pi. There are many free local brokers and cloud brokers.

Other option is maybe, install Node-RED in your raspberry pi, this will allow that you can read data directly from RPi.

I hope it helps you!!

---

<div class="post-metadata">

### Author: ![motosierra1141](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/motosierra1141/32/43434_2.png) [@motosierra1141](https://discourse.nodered.org/u/motosierra1141)
#### Post date: [29 July 2021 19:57 UTC](https://discourse.nodered.org/t/node-red-running-in-pc-want-to-send-data-from-raspberry-pi/49094/3 "2021-07-29T19:57:02Z")

</div>

thank you, do you know if there is any way to send data trough ethernet?, if raspberry pi is in the same network where node red is running?

---

<div class="post-metadata">

### Author: ![MecatronicaMADE](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@MecatronicaMADE](https://discourse.nodered.org/u/MecatronicaMADE)
#### Post date: [29 July 2021 19:58 UTC](https://discourse.nodered.org/t/node-red-running-in-pc-want-to-send-data-from-raspberry-pi/49094/4 "2021-07-29T19:58:32Z")

</div>

> [@MecatronicaMADE](#):
>
> with MQTT

MQTT protocol.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [29 July 2021 20:13 UTC](https://discourse.nodered.org/t/node-red-running-in-pc-want-to-send-data-from-raspberry-pi/49094/5 "2021-07-29T20:13:43Z")

</div>

You could use any of these:

- http
- tcp
- udp

All have corresponding node-red nodes.

But as @MecatronicaMADE has already said, using MQTT will be easier and more reliable. You can add the Mosquitto broker to the Pi and everything can write to it.

---

<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: [27 September 2021 20:14 UTC](https://discourse.nodered.org/t/node-red-running-in-pc-want-to-send-data-from-raspberry-pi/49094/6 "2021-09-27T20:14:26Z")

</div>

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