# eclipse-paho/paho.mqtt.cpp

Repository: https://github.com/eclipse-paho/paho.mqtt.cpp
Canonical: https://ross.abutalabs.com/products/pahomqttcpp
Language: C++
License: NOASSERTION
License Family: other
Last push: 2026-06-04T11:17:52+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 85, release rhythm 60, longevity 100
- inputs: {"age_days": 3864, "days_push": 90, "days_rel": 190, "gap_med": 32, "n_releases_24m": 6}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1324, forks 472 (observed 2026-08-28T04:04:22.337244+00:00)

## What it is
The Eclipse Paho MQTT C++ client library lets modern C++ (C++17+) applications connect to MQTT brokers to publish messages, subscribe to topics, and receive messages, supporting MQTT v3.1, v3.1.1, and v5. It wraps the Paho C library and adds a modern C++ interface with SSL/TLS and WebSocket transports, automatic reconnect, offline buffering, and blocking plus non-blocking APIs.

## Use cases
- connect to an MQTT broker from a C++ application
- publish and subscribe to MQTT topics in C++
- MQTT v5 client library for C++
- send IoT sensor telemetry over MQTT from C++
- add pub/sub messaging with TLS to a C++ desktop or server app
- asynchronous MQTT client with automatic reconnect and offline buffering

## When to choose
- You need MQTT v3.1/v3.1.1/v5 support in a modern C++17 codebase
- You require secure transports (SSL/TLS, secure WebSockets) and proxy support
- You need reliability features like automatic reconnect, offline buffering, and configurable message persistence
- You want both blocking and asynchronous (non-blocking) messaging APIs

## When to avoid
- You need an MQTT broker/server rather than a client library
- You target bare-metal or OS-less embedded devices (this library is for memory-managed OSes like Linux, macOS, and Windows)
- Your project cannot use C++17 or depends on the separate Paho C library being unavailable
- You need a pure C or another language binding - use paho.mqtt.c or another Paho client instead

## Facets
- artifact type: library
- maturity: stable
- function: message-queue, networking, sdk
- domain: iot, networking
- platform: windows, cross-platform, cpp
- tags: mqtt, mqtt-client, pub-sub, iot-messaging, tls, websockets, asynchronous-api, offline-buffering, automatic-reconnect, message-persistence, cpp17, eclipse-paho, messaging, linux, macos

## Member repositories
- eclipse-paho/paho.mqtt.cpp (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:22.337244+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-30T04:46:57.599738+00:00, confidence not recorded.
  - readme: https://github.com/eclipse-paho/paho.mqtt.cpp (fetched 2026-08-28T04:04:22.337244+00:00, sha 326635a3756e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
