Registry / messaging / async-mqtt

async-mqtt

JSON →
library10.3.0vcpkgunverified

Header-only Asynchronous MQTT communication library for C++17 based on Boost.Asio.

vcpkg install async-mqtt
INSTALL
IMPORT
SIG · ASYNC-MQTT
A
async-mqtt
messagingcppv10.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

async_mqtt/async_mqtt.hpp
#include <async_mqtt/async_mqtt.hpp>

Connect to an MQTT broker

#include <async_mqtt/async_mqtt.hpp> #include <iostream> int main() { boost::asio::io_context ioc; auto client = async_mqtt::make_client(ioc, "localhost", 1883); client->async_connect([](auto ec) { if (!ec) std::cout << "Connected!\n"; }); ioc.run(); }
Debug
Known issues
gotchaRequires Boost.Asio and C++17; header-only but may need linking to Boost libraries.
fix
Ensure Boost is installed and linked (e.g., find_package(Boost REQUIRED COMPONENTS asio)).
affects: *
Upgrade
Version history
10.3.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
40 hits · last 30 days
node
38
OpenAI (training)
1
Resources

No resource links recorded.

async-mqtt — pip install async-mqtt · libregistry