Astarte Device SDK ESP32
ESP32 device SDK for the Astarte platform
astarte.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_H_
13 #define _ASTARTE_H_
14 
15 // Version information
16 #define ASTARTE_DEVICE_SDK_MAJOR 1
17 #define ASTARTE_DEVICE_SDK_MINOR 2
18 #define ASTARTE_DEVICE_SDK_PATCH 0
19 
20 // clang-format off
21 
28 {
29  ASTARTE_OK = 0,
30  ASTARTE_ERR = 1,
32  ASTARTE_ERR_NO_JWT = 3,
35  ASTARTE_ERR_AUTH = 6,
37  ASTARTE_ERR_API = 8,
38  ASTARTE_ERR_HTTP = 9,
39  ASTARTE_ERR_NVS = 10,
43  ASTARTE_ERR_IO = 14,
47  ASTARTE_ERR_PUBLISH = 18,
50 } __attribute__((deprecated("Please use the typedef astarte_err_t")));
51 
52 // clang-format on
53 
54 #pragma GCC diagnostic push
55 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
56 typedef enum astarte_err_t astarte_err_t;
57 #pragma GCC diagnostic pop
58 
59 #endif
ASTARTE_ERR_NOT_FOUND
Definition: astarte.h:2
ASTARTE_ERR_NO_JWT
Definition: astarte.h:3
ASTARTE_ERR_INVALID_INTROSPECTION
Definition: astarte.h:19
ASTARTE_ERR_DEVICE_NOT_READY
Definition: astarte.h:17
ASTARTE_ERR_NVS_NOT_INITIALIZED
Definition: astarte.h:11
ASTARTE_ERR_ALREADY_EXISTS
Definition: astarte.h:7
ASTARTE_ERR_INVALID_INTERFACE_PATH
Definition: astarte.h:15
ASTARTE_ERR_API
Definition: astarte.h:8
ASTARTE_ERR
Definition: astarte.h:1
ASTARTE_ERR_MBED_TLS
Definition: astarte.h:13
ASTARTE_ERR_PUBLISH
Definition: astarte.h:18
ASTARTE_ERR_IO
Definition: astarte.h:14
astarte_err_t
Astarte return codes.
Definition: astarte.h:28
ASTARTE_OK
Definition: astarte.h:0
ASTARTE_ERR_INVALID_QOS
Definition: astarte.h:16
ASTARTE_ERR_PARTITION_SCHEME
Definition: astarte.h:12
ASTARTE_ERR_OUT_OF_MEMORY
Definition: astarte.h:4
ASTARTE_ERR_ESP_SDK
Definition: astarte.h:5
ASTARTE_ERR_INVALID_INTERFACE_VERSION
Definition: astarte.h:20
ASTARTE_ERR_NVS
Definition: astarte.h:10
ASTARTE_ERR_HTTP
Definition: astarte.h:9
ASTARTE_ERR_AUTH
Definition: astarte.h:6