Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. MQTT
  3. emqttc

emqttc

Apache-2.0Erlang

An Erlang MQTT client library and CLI tool supporting MQTT v5.0, v3.1.1, and v3.1.

Visit WebsiteGitHubGitHub
444 stars176 forks0 contributors

What is emqttc?

emqtt is an open-source MQTT client library and command-line tool implemented in Erlang. It enables applications to connect to MQTT brokers for publish/subscribe messaging, supporting protocol versions 5.0, 3.1.1, and 3.1. It solves the need for a robust, protocol-compliant client in Erlang ecosystems, particularly for IoT and distributed systems.

Target Audience

Erlang/Elixir developers building IoT applications, real-time messaging systems, or tools that need to interact with MQTT brokers. It's also useful for DevOps engineers and testers who need a CLI for MQTT debugging and automation.

Value Proposition

Developers choose emqtt for its native Erlang implementation, which offers reliability and concurrency benefits, full MQTT v5.0 support, and the dual utility of both a library and a CLI. Its support for multiple transports (TCP, TLS, WebSocket, QUIC) and enhanced authentication provides flexibility not found in many other clients.

Overview

Erlang MQTT 5.0 Client

Use Cases

Best For

  • Integrating MQTT messaging into Erlang or Elixir applications
  • Testing and debugging MQTT broker configurations from the command line
  • Building IoT device simulators or data publishers in Erlang
  • Implementing custom authentication flows for MQTT v5.0
  • Scripting MQTT message workflows in shell environments
  • Developing bridges between MQTT and other Erlang-based systems

Not Ideal For

  • Projects using programming languages other than Erlang or Elixir
  • Teams needing a graphical user interface for MQTT testing and monitoring
  • Quick ad-hoc MQTT testing without compilation or Erlang installation steps
  • Environments where minimal dependencies are critical and Erlang/OTP is not preferred

Pros & Cons

Pros

Full MQTT v5.0 Support

Supports the latest MQTT v5.0 protocol with enhanced authentication and properties, alongside v3.1.1 and v3.1, ensuring compatibility with modern brokers.

Dual CLI and Library

Includes command-line tools 'emqtt pub' and 'emqtt sub' for quick testing and scripting, plus a comprehensive Erlang API for programmatic integration.

Multiple Transport Options

Offers TCP, TLS/SSL, WebSocket, and experimental QUIC transports, providing flexible connectivity for diverse network environments.

Erlang Reliability and Concurrency

Leverages Erlang's strengths in fault tolerance and concurrency, making it robust for scalable IoT and real-time messaging systems.

Cons

CLI Enhanced Auth Missing

The command-line interface does not support enhanced authentication mechanisms for MQTT v5.0, limiting advanced security testing without using the library.

Experimental QUIC Issues

QUIC transport is experimental and may cause compilation problems, requiring a build flag to disable it, as noted in the README.

Erlang Dependency Barrier

Requires Erlang/OTP installation and building from source, which can be cumbersome for teams not already invested in the Erlang ecosystem.

Frequently Asked Questions

Quick Stats

Stars444
Forks176
Contributors0
Open Issues30
Last commit3 days ago
CreatedSince 2013

Tags

#iot#embedded-systems#mqtt-5#mqtt#mqtt-client#cli-tool#websocket#messaging#erlang#quic

Built With

E
Erlang

Links & Resources

Website

Included in

MQTT2.3k
Auto-fetched 11 hours ago

Related Projects

mqttexmqttex

MQTT implementation in Elixir

Stars45
Forks4
Last commit11 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