Astarte Device SDK ESP32
ESP32 device SDK for the Astarte platform
|
Astarte hardware ID functions. More...
Go to the source code of this file.
Functions | |
astarte_err_t | astarte_hwid_get_id (uint8_t *hardware_id) |
get a unique hardware ID. More... | |
astarte_err_t | astarte_hwid_encode (char *encoded, int dest_size, const uint8_t *hardware_id) |
encode a binary hardware ID to a C string. More... | |
Astarte hardware ID functions.
astarte_err_t astarte_hwid_encode | ( | char * | encoded, |
int | dest_size, | ||
const uint8_t * | hardware_id | ||
) |
encode a binary hardware ID to a C string.
base64url encode a 128 bits hardware id to an output string.
encoded | the destination buffer where encoded string will be written. |
dest_size | the destination buffer size. |
hardware_id | 16 bytes hardware id. |
astarte_err_t astarte_hwid_get_id | ( | uint8_t * | hardware_id | ) |
get a unique hardware ID.
Generate an unique hardware ID using device MAC address and other identification bits.
hardware_id | a 16 bytes buffer where device ID will be written. |