• 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

ESP32 MQTT over websocket

Q&A Forum › Category: ESP32 › ESP32 MQTT over websocket
0 Vote Up Vote Down
Pedro Chicala asked 5 years ago

Hi

Is there any way to connect to an MQTT broker using websockets instead of the normal TCP?

this would make it easier to connect to MQTT brokers in networks where only HTTP or HTTPs is open. At the moment I’m connecting using the async-mqtt-client library and everything is working for a normal MQTT connection over 8883 or 1883 but using the websocket will be much easier when using containers as MQTT brokers

Thanks

Regards

Pedro

Question Tags: MQTT, websocket
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 5 years ago

Hi Pedro.
We don’t have any tutorials about that subject.
There’s support for the ESP32 using ESP-IDF: https://github.com/espressif/esp-mqtt
https://www.youtube.com/watch?v=yFD7yfuMfY0
I’ve found these libraries for ESP8266 for Arduino IDE (maybe they also work with ESP32 with a few changes):

  • https://github.com/tuanpmt/ESP8266MQTTClient
  • https://github.com/tuielectronics/ESP8266-mqtt-over-websocket

I’m sorry that I can’t help much.
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.