• 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 Question(s)

Q&A Forum › MQTT Question(s)
0 Vote Up Vote Down
d.michael.lynch asked 6 years ago

I have a question or two about using MQTT with ESP8266-12 or ESP32 with MIT App Inventor 2.

What I have in mind is a project in which a Android application would accept voice input, then send command(s) to ESP module and the module would perform the command and return a reply. I could do this with HTTP however, in order to lighten the load I am wondering if it is posable to setup the Android and ESP module to communicate bi-directional over MQTT without a third device acting as a broker?

Both Phone and ESP module would be worn on a person’s body so transmission distance would not be very far.

1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi.

You always need a broker when using MQTT. In your case, because you don’t want another device, the only solution would be running an MQTT broker on your smartphone. I’ve never tried running an MQTT broker on my smartphone, so I don’t know if it works well or not.

There are some applications to run an MQTTT broker on your smartphone: https://play.google.com/store/apps/details?id=server.com.mqtt&hl=en you can try them and see how they perform.

Alternatively, you can use Bluetooth.

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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.