Astarte Device SDK ESP32
ESP32 device SDK for the Astarte platform
Loading...
Searching...
No Matches
astarte_hwid.h
Go to the documentation of this file.
1/*
2 * (C) Copyright 2018-2023, SECO Mind Srl
3 *
4 * SPDX-License-Identifier: LGPL-2.1-or-later 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
20extern "C" {
21#endif
22
30astarte_err_t astarte_hwid_get_id(uint8_t *hardware_id);
31
41astarte_err_t astarte_hwid_encode(char *encoded, int dest_size, const uint8_t *hardware_id);
42
43#ifdef __cplusplus
44}
45#endif
46
47#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.
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.