Adafruit_MQTT_Library
Lets an Arduino (or ESP) device send and receive MQTT messages to a broker, enabling IoT communication.
- •You need a low‑cost sensor board (e.g., ESP8266, ESP32, Feather) to push data to an MQTT broker.
- •Your product must react to remote commands (e.g., turn a relay on/off) via MQTT.
- •You want to prototype a publish/subscribe IoT flow without writing low‑level socket code.
// Publish a temperature reading every 10 seconds
unsigned long last = 0;
void loop() {
if (!mqtt.connected()) {
while (mqtt.connect() != 0) { delay(5000); }
mqtt.subscribe(&ledSub);
}
mqtt.processPackets(10000);
mqtt.ping();
if (millis() - last > 10000) {
float temp = readTempSensor();
temperaturePub.publish(temp);
last = millis();
}
if (ledSub.newMessage()) {
digitalWrite(LED_PIN, ledSub.value() ? HIGH : LOW);
}
}Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.
Installs with a command or two; your AI agent can do it for you.
mkdir -p ~/.claude/skills/adafruit-mqtt-library && curl -fsSL https://workflowstacks.com/api/skills/adafruit-mqtt-library/claude-skill -o ~/.claude/skills/adafruit-mqtt-library/SKILL.mdOpens the app with this repo with the prompt ready to go — no copy-paste needed.
Adafruit_MQTT_Library is a small C++ project (~1.5k lines across 7 code files). Setup is light: small project — see the README for how to run it. Last commit 4 months ago, MIT license, has a test suite.
- 1README.mdStart here — what it does and how to install it
- 2examples/adafruitio_anon_time_esp8266/.esp32.test.skipA worked example — copy this to get going
Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.
Installs with a command or two; your AI agent can do it for you.
mkdir -p ~/.claude/skills/adafruit-mqtt-library && curl -fsSL https://workflowstacks.com/api/skills/adafruit-mqtt-library/claude-skill -o ~/.claude/skills/adafruit-mqtt-library/SKILL.mdOpens the app with this repo with the prompt ready to go — no copy-paste needed.
Are you the creator of this tool? and earn 85% of every sale.
Show it off in your README:
[](https://workflowstacks.com/skills/adafruit-mqtt-library?utm_source=github&utm_medium=badge)The five fastest-growing open-source AI skills, ranked by GitHub star growth. One email a week, unsubscribe anytime.
Related skills
More ai-agent tools founders pair with this one.