# tuanpmt/esp_mqtt

MQTT client library for ESP8266

Repository: https://github.com/tuanpmt/esp_mqtt
Canonical: https://ross.abutalabs.com/products/esp_mqtt
Language: C
License: MIT
License Family: permissive
Topics: mqtt, esp8266, iot
Last push: 2020-12-22T11:05:45+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4268, "days_push": 2080, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1171, forks 399 (observed 2026-08-28T04:03:51.644249+00:00)

## What it is
A fully functional MQTT client library written in C for the ESP8266 microcontroller, ported from a Contiki MQTT client. It supports subscribing, publishing, authentication, will messages, keep-alive pings, all 3 QoS levels, multiple connections, and SSL.

## Use cases
- connect an ESP8266 to an MQTT broker
- publish sensor data from ESP8266 over MQTT
- subscribe to MQTT topics on ESP8266
- add MQTT with SSL/TLS to ESP8266 firmware
- implement last will and testament on ESP8266 devices

## When to choose
- you are building IoT firmware on ESP8266 using the Espressif NonOS SDK and need MQTT
- you need a lightweight C MQTT client with QoS and SSL support on ESP8266

## When to avoid
- you are using ESP32 or newer ESP-IDF (use esp-mqtt instead)
- you need a maintained library with active updates
- you use Arduino framework rather than the NonOS SDK

## Facets
- artifact type: library
- maturity: maintenance
- function: iot, networking, security
- domain: iot, embedded-systems, networking
- platform: embedded, iot, c
- tags: mqtt-client, esp8266, esp8266-sdk, ssl, embedded-c

## Member repositories
- tuanpmt/esp_mqtt (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:51.644249+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:28:33.513693+00:00, confidence not recorded.
  - readme: https://github.com/tuanpmt/esp_mqtt (fetched 2026-08-28T04:03:51.644249+00:00, sha cdd15a452cfb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
