Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
E

esp-mqtt

> 编程语言
Open source

ESP32 mqtt component

735 stars0 likes1 views
WebsiteGitHub

About

ESP32 mqtt component

ESP32 MQTT Library

Features

  • Based on:
  • Support MQTT over TCP, SSL with mbedtls, MQTT over Websocket, MQTT over Websocket Secure
  • Easy to setup with URI
  • Multiple instances (Multiple clients in one application)
  • Support subscribing, publishing, authentication, will messages, keep alive pings and all 3 QoS levels (it should be a fully functional client).
  • Support for MQTT 3.1.1 and 5.0

How to use

ESP-MQTT is available through the ESP-IDF Component Manager and ships as a standard ESP-IDF component.

  • To add it via the Component Manager (recommended), declare the dependency in your project's idf_component.yml, for example:

    yaml
    dependencies:
      espressif/mqtt: "*"

    Replace * with the version constraint you want to track, or run idf.py add-dependency espressif/mqtt.

  • For local development, clone this repository as mqtt so the component name matches:

    bash
    git clone https://github.com/espressif/esp-mqtt.git mqtt

Documentation

  • Documentation of ESP-MQTT API:

License

  • Apache License 2.0
  • MQTT package origin: Stephen Robinson - contiki-mqtt
  • Additional contributions by @tuanpmt

Older IDF versions

For ESP-IDF versions prior to IDFv3.2, please clone as a component of ESP-IDF:

bash
git submodule add https://github.com/espressif/esp-mqtt.git components/espmqtt

and checkout the ESP-MQTT_FOR_IDF_3.1 tag

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ccomponentesp-idfesp32iot

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言