Astarte Device SDK ESP32
ESP32 device SDK for the Astarte platform
astarte_hwid.h
Go to the documentation of this file.
1 /*
2  * (C) Copyright 2018, Ispirata Srl, info@ispirata.com.
3  *
4  * SPDX-License-Identifier: LGPL-2.1+ OR Apache-2.0
5  */
6 
12 #ifndef _ASTARTE_HWID_H_
13 #define _ASTARTE_HWID_H_
14 
15 #include "astarte.h"
16 
17 #include <stdint.h>
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
30 astarte_err_t astarte_hwid_get_id(uint8_t *hardware_id);
31 
40 void astarte_hwid_encode(char *encoded, int dest_size, const uint8_t *hardware_id);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif
Astarte types and defines.
astarte_err_t
Astarte return codes.
Definition: astarte.h:28
astarte_err_t astarte_hwid_get_id(uint8_t *hardware_id)
get a unique hardware ID.
void astarte_hwid_encode(char *encoded, int dest_size, const uint8_t *hardware_id)
encode a binary hardware ID to a C string.