• 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

Why don't you suggest to use an ESP 32 to run the MQTT broiker instead of a Raspberry that is at the present impossible to buy at a reasonable price ?

Q&A Forum › Category: ESP32 › Why don't you suggest to use an ESP 32 to run the MQTT broiker instead of a Raspberry that is at the present impossible to buy at a reasonable price ?
0 Vote Up Vote Down
Bruno Morra asked 2 years ago

Hi Sara,
I’m eagerly following all tutorials you present and I’ve to congratulate with you for your efforts that I find exceedingly useful for a newbie as I  am.
However I’m still struggling between your different  proposals in order to get a very basic need: send data from a BME280 sensor to a remote PC/cellphone.
I know you’ve proposed different ways to achieve this goal ( Firebase, Influx, Blue Ocean, etc) but I would ask if and how it’s possible to run MQTT broker with an ESP 32 instead of a Raspberry ( as shown in your project9 that at the present it’s impossible to buy at reasonable price.
I searched on Google and I found a library named ESPO32-MQTT-master.zip that is proposed for this use.and this is the link : https://www.survivingwithandroid.com/esp32-mqtt-client-publish-and-subscribe/.
I tried to use the code suggested but It turned out to have several errors and I was able to correct only some of them
So, which is your opinion on this topici: would you consider the possibility of writing a tutorial that uses an ESP32 both for running MQTT broker and for collecring and sending data from a BME280 sensor ?
Thanks in advance for your help.
Best
Bruno

Question Tags: Using ESP32 instead of Raspberry to run MQTT broker
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi.
The examples you’re mentioning use the ESP32 as an MQTT Client. The ESP32 is not running the broker.
I don’t think the ESP32 can easily run an MQTT broker, but I might be wrong.
 
In one of the examples you suggested, they use a cloudMQTT broker called hivemq. They provide a free MQTT broker if you want to experiment: https://www.hivemq.com/public-mqtt-broker/
Then, you can get a subscription to actually use their service.
 
You can install the Mosquitto broker on your computer.
I haven’t tried it, but it can be done. Search for example “install mosquito broker windows”.
This way, you don’t need a Raspberry Pi.
 
I hope this is clear.
Regards,
Sara
 
 

0 Vote Up Vote Down
Bruno Morra answered 2 years ago

Hi9 Sara,
thx a lot for your prompt answer.
I’ll try your suggestion.
However, if I fail I’ll probably turn to Raspberry ( finally I was able to find a Pi400 at a decent price and for a newbie I think this setup is easier to use than the Pi4, however impossible to find).
Best
Bruno

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Ok.
Then, let me know if you succeed.
Regards,
Sara

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.