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

Astarte pairing API and utilities. More...

#include <ada.h>
#include <chrono>
#include <format>
#include <string>
#include <string_view>
#include <tuple>
#include "astarte_device_sdk/mqtt/errors.hpp"

Go to the source code of this file.

Classes

class  astarte::device::mqtt::PairingApi
 Class providing the methods to perform the Astarte pairing operations. 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.
 

Functions

auto astarte::device::mqtt::create_random_device_id () -> std::string
 Creates a random Astarte device id starting from a UUIDv4.
 
auto astarte::device::mqtt::create_deterministic_device_id (std::string_view namespc, std::string_view unique_data) -> astarte_tl::expected< std::string, Error >
 Creates a deterministic Astarte device id using a UUIDv5.
 

Detailed Description

Astarte pairing API and utilities.

This file defines the PairingApi class and utility functions for managing device registration, credential retrieval, and device ID generation.