Astarte device API for C++ 0.8.1
Astarte device SDK for C++
Loading...
Searching...
No Matches
config.hpp File Reference

Configuration for the Astarte MQTT transport. More...

#include <ada.h>
#include <spdlog/spdlog.h>
#include <chrono>
#include <filesystem>
#include <fstream>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include "astarte_device_sdk/mqtt/errors.hpp"
#include "astarte_device_sdk/mqtt/pairing.hpp"

Go to the source code of this file.

Classes

class  astarte::device::mqtt::Config
 Configuration for the Astarte MQTT connection. More...
 

Namespaces

namespace  astarte
 Global namespace for all Astarte related functionality.
 
namespace  astarte::device
 Umbrella namespace for the Astarte device library.
 
namespace  astarte::device::mqtt
 Namespace for Astarte device functionality using the MQTT transport protocol.
 

Variables

constexpr uint32_t astarte::device::mqtt::DEFAULT_KEEP_ALIVE = 30
 Default keep alive interval in seconds for the MQTT connection.
 
constexpr uint32_t astarte::device::mqtt::DEFAULT_CONNECTION_TIMEOUT = 5
 Default connection timeout in seconds for the MQTT connection.
 
constexpr auto astarte::device::mqtt::DEFAULT_DISCONNECTION_TIMEOUT = 1s
 Default disconnection timeout in seconds for the MQTT connection.
 

Detailed Description

Configuration for the Astarte MQTT transport.

This file defines the configuration class used to set up the MQTT connection to the Astarte platform, including credentials, timeouts, and pairing information.