# emqx/MQTT-Client-Examples

MQTT Client Examples

Repository: https://github.com/emqx/MQTT-Client-Examples
Canonical: https://ross.abutalabs.com/products/mqtt-client-examples
Homepage: https://www.emqx.com
Language: Kotlin
License: MIT
License Family: permissive
Last push: 2026-08-17T21:33:43+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 2171, "days_push": 16, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1022, forks 720 (observed 2026-08-28T04:03:15.961965+00:00)

## What it is
A collection of MQTT client example programs in many programming languages covering MQTT 3.1, 3.1.1, and 5.0 protocols, maintained by EMQ. It is designed to help developers learn the MQTT protocol and connect clients to any MQTT broker, with a free public broker (broker.emqx.io) provided for testing.

## Use cases
- learn how the MQTT protocol works
- connect an IoT device to an MQTT broker
- example code for publishing and subscribing over MQTT
- test MQTT over TCP, TLS, and WebSocket
- get started with MQTT in Kotlin, Python, Go, or other languages
- prototype MQTT messaging before choosing a client library

## When to choose
- you are learning MQTT and want runnable sample code in your language
- you need a quick reference for MQTT 3.1.1 or 5.0 client usage
- you want to test connectivity against a public MQTT broker

## When to avoid
- you need a production-ready MQTT client library rather than examples
- you need an MQTT broker itself rather than client code
- you need guaranteed maintenance or support for the sample code

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, sdk
- domain: iot, developer-tools, tutorials, messaging-platforms
- platform: cross-platform, python, go, rust, cpp, jvm, embedded
- tags: mqtt, mqtt-client, examples, iot-messaging, pubsub, emqx, sample-code, mqtt5, javascript, android, ios

## Member repositories
- emqx/MQTT-Client-Examples (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:15.961965+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-30T07:08:43.401622+00:00, confidence not recorded.
  - readme: https://github.com/emqx/MQTT-Client-Examples (fetched 2026-08-28T04:03:15.961965+00:00, sha f7878ab1dd66)
  - homepage: https://www.emqx.com (fetched 2026-08-29T13:08:52.174001+00:00, sha d69f4d193a59)
  - site_page: https://www.emqx.com/en/pricing (fetched 2026-08-29T13:08:52.176493+00:00, sha 2b07d8f79861)
- Data as of 2026-08-30T08:39:29.467469+00:00.
