mqtt-rumqttc

Implement MQTT pub/sub, QoS, and LWT patterns in Rust with rumqttc.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/JNZader-Vault/project-starter-framework --skill mqtt-rumqttc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mqtt-rumqttc
Source: https://github.com/JNZader-Vault/project-starter-framework/tree/main/.ai-config/skills/systems-iot/mqtt-rumqttc
Command: npx skills add https://github.com/JNZader-Vault/project-starter-framework --skill mqtt-rumqttc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rumqttc, tokio, serde, serde_json, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides robust patterns for building MQTT clients in Rust, enabling reliable communication for IoT and industrial messaging systems.

Core Features & Use Cases

  • Publish/Subscribe: Implement efficient message publishing and subscription to MQTT brokers.
  • Quality of Service (QoS): Configure and utilize different QoS levels for guaranteed message delivery.
  • Last Will Testament (LWT): Ensure graceful handling of client disconnections.
  • Use Case: Develop an IoT gateway that publishes sensor readings to a central broker and subscribes to commands for device control.

Quick Start

Use the mqtt-rumqttc skill to set up a new MQTT client with the provided configuration.

Frequently Asked Questions about mqtt-rumqttc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement an MQTT client in Rust for IoT messaging?

To implement an MQTT client in Rust, use the rumqttc library to establish broker communication. It provides robust patterns for pub/sub, QoS levels, and Last Will Testament (LWT) to ensure reliable IoT messaging.

What is the best way to handle MQTT event loops in Rust async applications?

Handling MQTT event loops in Rust requires the tokio runtime for async operations. The rumqttc library manages the event loop natively, ensuring reliable background processing of pub/sub messages and broker network requests.

How do I configure a Last Will and Testament (LWT) for an MQTT client in Rust?

Configuring a Last Will and Testament (LWT) in Rust involves setting the LWT payload within your rumqttc client setup. This ensures graceful handling of unexpected client disconnections from the MQTT broker.

Do I need tokio and serde to use rumqttc for MQTT pub/sub in Rust?

Yes, you need tokio for async runtime operations and serde with serde_json for JSON serialization. These dependencies are required to run the MQTT client event loop and serialize IoT messaging payloads.