Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. MQTT
  3. ESP32-BLE2MQTT

ESP32-BLE2MQTT

MITCv0.18.2

A BLE to MQTT bridge for ESP32 that exposes Bluetooth GATT characteristics and advertisements as MQTT topics.

GitHubGitHub
768 stars119 forks0 contributors

What is ESP32-BLE2MQTT?

ESP32-BLE2MQTT is a firmware application for ESP32 microcontrollers that bridges Bluetooth Low Energy (BLE) devices to an MQTT broker. It translates BLE GATT characteristics and broadcaster advertisements into MQTT topics, enabling seamless integration of BLE sensors and peripherals into IoT and home automation systems.

Target Audience

IoT developers and hobbyists building home automation or industrial monitoring systems that need to integrate BLE sensors and devices into an MQTT-based ecosystem.

Value Proposition

It provides a robust, configurable bridge that simplifies integrating diverse BLE devices into MQTT-based ecosystems, emphasizing automation and interoperability, with features like automatic notifications, connection management, and over-the-air updates.

Overview

A BLE to MQTT bridge running on an ESP32

Use Cases

Best For

  • Integrating BLE sensors (e.g., temperature, humidity, battery level) into home automation platforms like Home Assistant via MQTT.
  • Bridging non-connectable BLE broadcasters (e.g., iBeacon, Eddystone, Xiaomi sensors) to publish advertisements as MQTT messages.
  • Building IoT systems that require bidirectional communication with BLE peripherals through readable and writable MQTT topics.
  • Managing multiple ESP32 bridge instances with connection status and ownership topics to prevent conflicts.
  • Deploying remote firmware and configuration updates over-the-air after initial serial flashing.
  • Connecting ESP32 devices to networks via either WiFi or Ethernet with configurable security and device filtering.

Not Ideal For

  • Projects needing a plug-and-play solution without compiling or firmware development – requires ESP-IDF setup and build process.
  • Systems that rely on non-MQTT protocols like HTTP or CoAP for device communication, as it's MQTT-centric.
  • Applications requiring real-time, low-latency control of BLE devices where MQTT's pub/sub model might introduce network delays.
  • Teams without embedded systems experience, due to the need for board-specific configurations and potential debugging.

Pros & Cons

Pros

Comprehensive BLE Support

Maps GATT characteristics and supports various broadcasters like iBeacon and Xiaomi sensors, automatically publishing decoded data to MQTT topics with notifications and read/write capabilities.

Robust Connection Management

Implements ownership and connection status topics to prevent conflicts between multiple bridge instances, ensuring stable and conflict-free device management.

Flexible Network Options

Supports both WiFi and Ethernet connectivity with configurable security, including WPA-Enterprise and MQTT SSL, allowing adaptation to diverse network environments.

Remote Update Capability

Enables over-the-air updates for firmware and configuration via MQTT after initial serial flashing, simplifying maintenance and deployment.

Cons

ESP-IDF Version Lock-in

Must use ESP-IDF v5.2.1 specifically; the README warns that other versions might not compile or be stable, limiting flexibility and upgrade options.

Complex Initial Setup

Requires full ESP-IDF toolchain installation, compiling, and flashing, which can be time-consuming and challenging for those new to embedded development.

Board-Specific Tweaks Needed

For boards like Olimex ESP32-POE, manual configuration changes in JSON and menuconfig are required, indicating lack of out-of-the-box support for all ESP32 variants.

Frequently Asked Questions

Quick Stats

Stars768
Forks119
Contributors0
Open Issues50
Last commit8 months ago
CreatedSince 2017

Tags

#iot#esp32#home-automation#mqtt#ble#bluetooth#bluetooth-low-energy#esp-idf#firmware#sensor-integration

Built With

E
ESP-IDF
C
C++

Included in

MQTT2.3k
Auto-fetched 8 hours ago

Related Projects

pubsubclientpubsubclient

A client library for the Arduino Ethernet Shield that provides support for MQTT.

Stars3,997
Forks1,506
Last commit1 year ago
ESP_mqttESP_mqtt

MQTT client library for ESP8266

Stars1,168
Forks398
Last commit5 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub