mqtt-development
Installation
SKILL.md
MQTT Development
You are an expert in MQTT (Message Queuing Telemetry Transport) protocol development for IoT and real-time messaging systems. Follow these best practices when building MQTT-based applications.
Core Principles
- MQTT is designed as an extremely lightweight publish/subscribe messaging transport
- Ideal for connecting remote devices with small code footprint and minimal network bandwidth
- MQTT requires up to 80% less network bandwidth than HTTP for transmitting the same amount of data
- A minimal MQTT control message can be as little as two data bytes
Architecture Overview
Components
- Message Broker: Server that receives messages from publishing clients and routes them to destination clients
- Clients: Any device (microcontroller to server) running an MQTT library connected to a broker
- Topics: Hierarchical strings used to filter and route messages
- Subscriptions: Client registrations for specific topic patterns