• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

MQTT mosquitto

Q&A Forum › Category: ESP32 › MQTT mosquitto
0 Vote Up Vote Down
gj.linthorst asked 6 years ago

Hello, 
Can I send and receive data from my MQTT mosquitto Broker installed on my Raspberry or do I also  have to install Node-Red. In the Python cource in de beginning chapter MQTT is mentioned that allows to send commands to control outputs, read and publish.
 

3 Answers
0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Hello! Yes, you can have a Raspberry Pi running Mosquitto MQTT broker. Then, you can only have ESPs in your network talking to each other with publish and subscribe messages. You don’t need Node-RED installed. I hope that helps!

0 Vote Up Vote Down
gj.linthorst answered 6 years ago

Hello your anser I aso thought. But why in the next chapter U use node red to swith a led and read the temperture on a sensor. I’d like to know how you switch a gpio on ESP with only Mosquito broker installeld on a Raspberry pi.

0 Vote Up Vote Down
Rui Santos Staff answered 6 years ago

Mosquitto only distributes the MQTT messages in your network to all connected devices. In order for Mosquitto to send a message, there needs to be a client sending an MQTT message. 
For example:

  • ESP is client #1
  • Node-RED is client #2

Those two clients can exchange MQTT messages through the Mosquitto broker. Instead of having Node-RED, you can use the following setup:

  • ESP is client #1
  • Another ESP as client #2

Regards,
Rui

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.