MQTT

wizard612powerz
Posts: 4
Joined: Mon Dec 09, 2024 5:28 pm

MQTT

Postby wizard612powerz » Mon Dec 09, 2024 5:35 pm

Good Evening everyone,
I'm working on a project where ESP32 takes analog data from some senor then send it to a website via
websocket, and then I was introduced to MQTT, i have made the oneshot ADC task and im trying to sent data using a topic called my_topic.

My Questions are,
1- What do i need to know or to read from esp website to get an idea on how to send/receive data?
2- how do i create a dummy MQTT Broker so i can test my clients data?

Thanks everyone

a2800276
Posts: 79
Joined: Sat Jan 23, 2016 1:59 pm

Re: MQTT

Postby a2800276 » Tue Dec 10, 2024 12:45 pm

1.) The ESP-IDF MQTT documentation: https://docs.espressif.com/projects/esp ... /mqtt.html

The IDF itself also contains sample code: https://github.com/espressif/esp-idf/tr ... ocols/mqtt

2.) A number of MQTT brokers have publicly accessible test servers. Use one of the to get started, e.g. : https://test.mosquitto.org/

Who is online

Users browsing this forum: Bing [Bot], ChatGPT-User, PerplexityBot, Qwantbot, YisouSpider and 9 guests