redboltz-mqtt_cpp/13.2.1

MQTT client/server for C++14 based on Boost.Asio
Recipe info
2023-09-20

Available packages
Header Only

Install
Add the following line to your conanfile.txt:
[requires]
redboltz-mqtt_cpp/13.2.1

Using redboltz-mqtt_cpp

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
redboltz-mqtt_cpp/13.2.1
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("redboltz-mqtt_cpp/13.2.1")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): mqtt_cpp
  • CMake target name(s): mqtt_cpp::mqtt_cpp
  • pkg-config file name(s): redboltz-mqtt_cpp.pc

A simple use case using the CMake file name and the global target:

# ...
find_package(mqtt_cpp REQUIRED)
# ...
target_link_libraries(YOUR_TARGET mqtt_cpp::mqtt_cpp)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the redboltz-mqtt_cpp homepage listed above:

#include "mqtt/any.hpp"
#include "mqtt/async_client.hpp"
#include "mqtt/attributes.hpp"
#include "mqtt/broker/broker.hpp"
#include "mqtt/broker/broker_namespace.hpp"
#include "mqtt/broker/common_type.hpp"
#include "mqtt/broker/constant.hpp"
#include "mqtt/broker/inflight_message.hpp"
#include "mqtt/broker/mutex.hpp"
#include "mqtt/broker/offline_message.hpp"
#include "mqtt/broker/property_util.hpp"
#include "mqtt/broker/retain_t.hpp"
#include "mqtt/broker/retained_messages.hpp"
#include "mqtt/broker/retained_topic_map.hpp"
#include "mqtt/broker/security.hpp"
#include "mqtt/broker/session_state.hpp"
#include "mqtt/broker/session_state_fwd.hpp"
#include "mqtt/broker/shared_target.hpp"
#include "mqtt/broker/shared_target_impl.hpp"
#include "mqtt/broker/sub_con_map.hpp"
#include "mqtt/broker/subscription.hpp"
#include "mqtt/broker/subscription_map.hpp"
#include "mqtt/broker/tags.hpp"
#include "mqtt/broker/time_point_t.hpp"
#include "mqtt/broker/topic_filter.hpp"
#include "mqtt/broker/uuid.hpp"
#include "mqtt/buffer.hpp"
#include "mqtt/callable_overlay.hpp"
#include "mqtt/client.hpp"
#include "mqtt/config.hpp"
#include "mqtt/connect_flags.hpp"
#include "mqtt/connect_return_code.hpp"
#include "mqtt/const_buffer_util.hpp"
#include "mqtt/constant.hpp"
#include "mqtt/control_packet_type.hpp"
#include "mqtt/deprecated.hpp"
#include "mqtt/deprecated_msg.hpp"
#include "mqtt/endpoint.hpp"
#include "mqtt/error_code.hpp"
#include "mqtt/exception.hpp"
#include "mqtt/fixed_header.hpp"
#include "mqtt/four_byte_util.hpp"
#include "mqtt/hexdump.hpp"
#include "mqtt/log.hpp"
#include "mqtt/message.hpp"
#include "mqtt/message_variant.hpp"
#include "mqtt/move.hpp"
#include "mqtt/namespace.hpp"
#include "mqtt/null_strand.hpp"
#include "mqtt/optional.hpp"
#include "mqtt/packet_id_manager.hpp"
#include "mqtt/packet_id_type.hpp"
#include "mqtt/property.hpp"
#include "mqtt/property_id.hpp"
#include "mqtt/property_parse.hpp"
#include "mqtt/property_variant.hpp"
#include "mqtt/protocol_version.hpp"
#include "mqtt/publish.hpp"
#include "mqtt/reason_code.hpp"
#include "mqtt/remaining_length.hpp"
#include "mqtt/server.hpp"
#include "mqtt/session_present.hpp"
#include "mqtt/setup_log.hpp"
#include "mqtt/shared_ptr_array.hpp"
#include "mqtt/shared_scope_guard.hpp"
#include "mqtt/shared_subscriptions.hpp"
#include "mqtt/store.hpp"
#include "mqtt/strand.hpp"
#include "mqtt/string_check.hpp"
#include "mqtt/string_view.hpp"
#include "mqtt/subscribe_entry.hpp"
#include "mqtt/subscribe_options.hpp"
#include "mqtt/sync_client.hpp"
#include "mqtt/tcp_endpoint.hpp"
#include "mqtt/time_point_t.hpp"
#include "mqtt/tls.hpp"
#include "mqtt/topic_alias_recv.hpp"
#include "mqtt/topic_alias_send.hpp"
#include "mqtt/two_byte_util.hpp"
#include "mqtt/two_or_four_byte_util.hpp"
#include "mqtt/type.hpp"
#include "mqtt/type_erased_socket.hpp"
#include "mqtt/unique_scope_guard.hpp"
#include "mqtt/utf8encoded_strings.hpp"
#include "mqtt/v5_message.hpp"
#include "mqtt/value_allocator.hpp"
#include "mqtt/variable_length.hpp"
#include "mqtt/variant.hpp"
#include "mqtt/variant_visit.hpp"
#include "mqtt/visitor_util.hpp"
#include "mqtt/will.hpp"
#include "mqtt/ws_endpoint.hpp"
#include "mqtt_client_cpp.hpp"
#include "mqtt_server_cpp.hpp"