Astarte device API for Zephyr 0.7.2
Astarte device SDK for Zephyr RTOS
Loading...
Searching...
No Matches
device_id.h File Reference

Functions for the generation of Astarte device identifiers. More...

Go to the source code of this file.

Macros

#define ASTARTE_DEVICE_ID_LEN   22
 Number of characters in the string version of an Astarte device ID.
 
#define ASTARTE_DEVICE_ID_NAMESPACE_SIZE   16
 Size in bytes for the namespace used to generate a deterministic device IDs.
 

Functions

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_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.
 

Detailed Description

Functions for the generation of Astarte device identifiers.