7#ifndef ASTARTE_DEVICE_SDK_RESULT_H
8#define ASTARTE_DEVICE_SDK_RESULT_H
Astarte types and defines.
astarte_result_t
Astarte Device SDK return codes.
Definition result.h:31
const char * astarte_result_to_name(astarte_result_t code)
Returns string for result codes.
@ ASTARTE_RESULT_INTERNAL_ERROR
A generic error occurred.
Definition result.h:35
@ ASTARTE_RESULT_MQTT_CLIENT_ALREADY_CONNECTED
Attempting to connect an MQTT client already connected.
Definition result.h:93
@ ASTARTE_RESULT_MAPPING_NOT_IN_INTERFACE
Could not find the mapping corresponding to a path in an interface.
Definition result.h:83
@ ASTARTE_RESULT_BSON_EMPTY_ARRAY_ERROR
A BSON array with elements of different type has been received.
Definition result.h:73
@ ASTARTE_RESULT_MAPPING_INDIVIDUAL_INCOMPATIBLE
The provided Astarte individual is not compatible with a mapping.
Definition result.h:81
@ ASTARTE_RESULT_MQTT_CLIENT_ALREADY_CONNECTING
Attempting to connect an MQTT client already connecting.
Definition result.h:95
@ ASTARTE_RESULT_BSON_DESERIALIZER_ERROR
BSON deserialization error.
Definition result.h:69
@ ASTARTE_RESULT_MAPPING_UNSET_NOT_ALLOWED
The specified mapping does not support properties unsetting.
Definition result.h:85
@ ASTARTE_RESULT_OUT_OF_MEMORY
The operation caused an out of memory error.
Definition result.h:37
@ ASTARTE_RESULT_MBEDTLS_ERROR
Internal error from the MBEDTLS library.
Definition result.h:49
@ ASTARTE_RESULT_KV_STORAGE_FULL
Astarte key-value storage is full.
Definition result.h:103
@ ASTARTE_RESULT_BSON_SERIALIZER_ERROR
BSON serialization error.
Definition result.h:67
@ ASTARTE_RESULT_DEVICE_CACHING_OUTDATED_INTROSPECTION
An outdated introspection has been found in cache.
Definition result.h:105
@ ASTARTE_RESULT_INVALID_PARAM
A function has been called with incorrect parameters.
Definition result.h:41
@ ASTARTE_RESULT_JSON_ERROR
Attempting to parse/encode a malformed JSON document.
Definition result.h:47
@ ASTARTE_RESULT_TIMEOUT
Operation timed out.
Definition result.h:65
@ ASTARTE_RESULT_SOCKET_ERROR
Error during TCP socket creation.
Definition result.h:43
@ ASTARTE_RESULT_BSON_DESERIALIZER_TYPES_ERROR
A BSON document with elements of incompatible type has been received.
Definition result.h:71
@ ASTARTE_RESULT_MAPPING_EXPLICIT_TIMESTAMP_REQUIRED
The specified mapping requires an explicit timestamp.
Definition result.h:87
@ ASTARTE_RESULT_INTERFACE_NOT_FOUND
Interface not found in the introspection.
Definition result.h:55
@ ASTARTE_RESULT_TLS_ERROR
Error from the TLS credential zephyr module.
Definition result.h:61
@ ASTARTE_RESULT_DEVICE_NOT_READY
Calling a device API while the device is not ready.
Definition result.h:97
@ ASTARTE_RESULT_NVS_ERROR
Error while reading/writing an NVS entry.
Definition result.h:101
@ ASTARTE_RESULT_INCOMPLETE_AGGREGATION_OBJECT
A partial aggregated object has been found.
Definition result.h:99
@ ASTARTE_RESULT_MQTT_ERROR
Internal error from the MQTT library.
Definition result.h:63
@ ASTARTE_RESULT_MAPPING_PATH_MISMATCH
The provided path does not match the mapping endpoint.
Definition result.h:79
@ ASTARTE_RESULT_OK
No errors.
Definition result.h:33
@ ASTARTE_RESULT_CLIENT_CERT_INVALID
Astarte marked the device client certificate as invalid.
Definition result.h:77
@ ASTARTE_RESULT_INTERFACE_ALREADY_PRESENT
Interface is already present in the introspection.
Definition result.h:53
@ ASTARTE_RESULT_INVALID_CONFIGURATION
Invalid configuration for the required operation.
Definition result.h:39
@ ASTARTE_RESULT_INTERFACE_INVALID_VERSION
Trying to add an interface with both major an minor set to 0.
Definition result.h:57
@ ASTARTE_RESULT_BSON_EMPTY_DOCUMENT_ERROR
An empty BSON document has been received.
Definition result.h:75
@ ASTARTE_RESULT_HTTP_REQUEST_ERROR
An HTTP request could not be processed.
Definition result.h:45
@ ASTARTE_RESULT_NOT_FOUND
The resource was not found.
Definition result.h:51
@ ASTARTE_RESULT_MQTT_CLIENT_NOT_READY
Calling an MQTT API while the client is not ready.
Definition result.h:91
@ ASTARTE_RESULT_INTERFACE_CONFLICTING
Trying to add an interface that conflicts with the previous one.
Definition result.h:59
@ ASTARTE_RESULT_MAPPING_EXPLICIT_TIMESTAMP_NOT_SUPPORTED
The specified mapping does not support an explicit timestamp.
Definition result.h:89