# Can I connect NODEMCU directly to Node-RED?

**URL:** <https://discourse.nodered.org/t/can-i-connect-nodemcu-directly-to-node-red/39297>\
**Category:** General\
**Created:** [17 January 2021 22:22 UTC](https://discourse.nodered.org/t/can-i-connect-nodemcu-directly-to-node-red/39297 "2021-01-17T22:22:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mindquanta](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mindquanta](https://discourse.nodered.org/u/mindquanta)\
**Post date:** [17 January 2021 22:22 UTC](https://discourse.nodered.org/t/can-i-connect-nodemcu-directly-to-node-red/39297/1 "2021-01-17T22:22:10Z")

</div>

Hi 😊  
I'm new to automation. I want to connect my NODEMCU to NODE-RED. I've seen several videos and everyone says I have to use MTQQ.  
Am I required to use MQTT between NODEMCU and NODE-RED?  
Can't I connect NODEMCU directly to NODE-RED?  
Sorry for my ignorance. I'm a little lost.  
Thank you ! 👍

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [17 January 2021 22:27 UTC](https://discourse.nodered.org/t/can-i-connect-nodemcu-directly-to-node-red/39297/2 "2021-01-17T22:27:40Z")

</div>

Hello and welcome to the forum.

I've never tried it, but you could probably make use of a serial link with wires.

However, MQTT is the most common communication method used with the Internet of Things (IoT) and is not that difficult to implement. Lots of people on this forum use it, so help/advice should be available.

---

<div class="post-metadata">

**Author:** ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Post date:** [17 January 2021 22:40 UTC](https://discourse.nodered.org/t/can-i-connect-nodemcu-directly-to-node-red/39297/3 "2021-01-17T22:40:58Z")

</div>

You can also use http. But MQTT is the most common and quite easy to use. But the firmware you are planning to use more or less decide the communication protocol

---

<div class="post-metadata">

**Author:** ![mindquanta](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mindquanta](https://discourse.nodered.org/u/mindquanta)\
**Post date:** [18 January 2021 00:39 UTC](https://discourse.nodered.org/t/can-i-connect-nodemcu-directly-to-node-red/39297/4 "2021-01-18T00:39:08Z")

</div>

I will study more about MQTT. I had seen other tutorials about him. Gradually I dominate. But you solved the main question. I wasn't advancing any more because I always ran into it.  
Thank you for the quick answer ! 🙏

---

<div class="post-metadata">

**Author:** ![mindquanta](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@mindquanta](https://discourse.nodered.org/u/mindquanta)\
**Post date:** [18 January 2021 00:40 UTC](https://discourse.nodered.org/t/can-i-connect-nodemcu-directly-to-node-red/39297/5 "2021-01-18T00:40:55Z")

</div>

Como mencionei com o dynamicdave ... vou ler mais sobre o MQTT.  
Obrigada pela rápida resposta ! 🙏

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [18 January 2021 06:14 UTC](https://discourse.nodered.org/t/can-i-connect-nodemcu-directly-to-node-red/39297/6 "2021-01-18T06:14:54Z")

</div>

How are you going to program the NodeMCU ?? You have a number of options.

- EasyESP
- Tasmota
- Arduino C++

Personally I use EasyESP for all my Wemos D1 Mini devices, although recently I've also been using Platformio running on Visual Studio Code (bit of a learning curve).

You haven't told us on which platform/operating system you are running Node-RED ??  
e.g. Raspberry Pi, PC, Linux box, Windows, iOS, etc..

If you provide a few more details I'm sure people can help you further.

---

<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:** [19 March 2021 06:14 UTC](https://discourse.nodered.org/t/can-i-connect-nodemcu-directly-to-node-red/39297/7 "2021-03-19T06:14:56Z")

</div>

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