7#ifndef ASTARTE_DEVICE_SDK_DEVICE_ID_H
8#define ASTARTE_DEVICE_SDK_DEVICE_ID_H
31#define ASTARTE_DEVICE_ID_LEN 22
34#define ASTARTE_DEVICE_ID_NAMESPACE_SIZE 16
Astarte types and defines.
astarte_result_t astarte_device_id_generate_deterministic(const uint8_t namespace[static ASTARTE_DEVICE_ID_NAMESPACE_SIZE], const uint8_t *name, size_t name_size, char out[static ASTARTE_DEVICE_ID_LEN+1])
Generate a deterministic Astarte device ID.
#define ASTARTE_DEVICE_ID_NAMESPACE_SIZE
Size in bytes for the namespace used to generate a deterministic device IDs.
Definition device_id.h:34
#define ASTARTE_DEVICE_ID_LEN
Number of characters in the string version of an Astarte device ID.
Definition device_id.h:31
astarte_result_t astarte_device_id_generate_random(char out[static ASTARTE_DEVICE_ID_LEN+1])
Generate a random Astarte device ID.
astarte_result_t
Astarte Device SDK return codes.
Definition result.h:31