MCPcopy Create free account
hub / github.com/adafruit/Adafruit_MQTT_Library

github.com/adafruit/Adafruit_MQTT_Library @2.6.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.6.5 ↗ · + Follow
59 symbols 81 edges 7 files 10 documented · 17% updated 7d ago2.6.6 · 2026-07-07★ 59653 open issues

Browse by type

Functions 53 Types & classes 6
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Adafruit MQTT Library Build Status

Arduino library for MQTT support, including access to Adafruit IO. Works with the Adafruit FONA, Arduino Yun, ESP8266 Arduino platforms, and anything that supports Arduino's Client interface (like Ethernet shield).

See included examples for how to use the library to access an MQTT service to publish and subscribe to feeds. Note that this does not support the full MQTT spec but is intended to support enough for QoS 0 and 1 publishing.

Depends on the following other libraries depending on the target platform:

Future todos:

  • Subscription callbacks

  • remove watchdog

Compatibility

MCU Tested Works Doesn't Work Not Tested Notes
Atmega328 @ 16MHz X
Atmega328 @ 12MHz X
Atmega32u4 @ 16MHz X
Atmega32u4 @ 8MHz X
ESP8266 X
Atmega2560 @ 16MHz X
ATSAM3X8E X
ATSAM21D X
ATSAMD51J20 X
ATtiny85 @ 16MHz X
ATtiny85 @ 8MHz X
Intel Curie @ 32MHz X
STM32F2 X
  • ATmega328 @ 16MHz : Arduino UNO, Adafruit Pro Trinket 5V, Adafruit Metro 328, Adafruit Metro Mini
  • ATmega328 @ 12MHz : Adafruit Pro Trinket 3V
  • ATmega32u4 @ 16MHz : Arduino Leonardo, Arduino Micro, Arduino Yun, Teensy 2.0
  • ATmega32u4 @ 8MHz : Adafruit Flora, Bluefruit Micro
  • ESP8266 : Adafruit Huzzah
  • ATmega2560 @ 16MHz : Arduino Mega
  • ATSAM3X8E : Arduino Due
  • ATSAM21D : Arduino Zero, M0 Pro
  • ATSAMD51J20: Adafruit PyPortal
  • ATtiny85 @ 16MHz : Adafruit Trinket 5V
  • ATtiny85 @ 8MHz : Adafruit Gemma, Arduino Gemma, Adafruit Trinket 3V

Core symbols most depended-on inside this repo

Shape

Method 41
Function 12
Class 6

Languages

C++90%
Python10%

Modules by API surface

Adafruit_MQTT.cpp33 symbols
Adafruit_MQTT_FONA.h7 symbols
examples/mqtt_arbitrary_data/python_subscriber/subscriber.py6 symbols
Adafruit_MQTT_Client.cpp5 symbols
Adafruit_MQTT.h5 symbols
Adafruit_MQTT_Client.h2 symbols
examples/mqtt_fona/fonahelper.cpp1 symbols

For agents

$ claude mcp add Adafruit_MQTT_Library \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page