Astarte device API for Zephyr 0.8.0
Astarte device SDK for Zephyr RTOS
Loading...
Searching...
No Matches
data.h File Reference

Definitions for Astarte base data type. More...

Go to the source code of this file.

Data Structures

struct  astarte_data_t
 Base Astarte data type. More...
 

Functions

astarte_data_t astarte_data_from_binaryblob (void *binaryblob, size_t len)
 Initialize an astarte data from the input binaryblob.
 
astarte_data_t astarte_data_from_boolean (bool boolean)
 Initialize an astarte data from the input boolean.
 
astarte_data_t astarte_data_from_datetime (int64_t datetime)
 Initialize an astarte data from the input datetime.
 
astarte_data_t astarte_data_from_double (double dbl)
 Initialize an astarte data from the input double.
 
astarte_data_t astarte_data_from_integer (int32_t integer)
 Initialize an astarte data from the input integer.
 
astarte_data_t astarte_data_from_longinteger (int64_t longinteger)
 Initialize an astarte data from the input longinteger.
 
astarte_data_t astarte_data_from_string (const char *string)
 Initialize an astarte data from the input string.
 
astarte_data_t astarte_data_from_binaryblob_array (const void **blobs, size_t *sizes, size_t count)
 Initialize an astarte data from the input binaryblob array.
 
astarte_data_t astarte_data_from_boolean_array (bool *boolean_array, size_t len)
 Initialize an astarte data from the input boolean array.
 
astarte_data_t astarte_data_from_datetime_array (int64_t *datetime_array, size_t len)
 Initialize an astarte data from the input datetime array.
 
astarte_data_t astarte_data_from_double_array (double *double_array, size_t len)
 Initialize an astarte data from the input double array.
 
astarte_data_t astarte_data_from_integer_array (int32_t *integer_array, size_t len)
 Initialize an astarte data from the input integer array.
 
astarte_data_t astarte_data_from_longinteger_array (int64_t *longinteger_array, size_t len)
 Initialize an astarte data from the input longinteger array.
 
astarte_data_t astarte_data_from_string_array (const char **string_array, size_t len)
 Initialize an astarte data from the input string array.
 
astarte_mapping_type_t astarte_data_get_type (astarte_data_t data)
 Get the type of Astarte data.
 
astarte_result_t astarte_data_to_binaryblob (astarte_data_t data, void **binaryblob, size_t *len)
 Convert Astarte data (of the binary blob type) to an array of binary blobs.
 
astarte_result_t astarte_data_to_boolean (astarte_data_t data, bool *boolean)
 Convert Astarte data (of the boolean type) to a bool.
 
astarte_result_t astarte_data_to_datetime (astarte_data_t data, int64_t *datetime)
 Convert Astarte data (of the datetime type) to an int64_t.
 
astarte_result_t astarte_data_to_double (astarte_data_t data, double *dbl)
 Convert Astarte data (of double type) to a double.
 
astarte_result_t astarte_data_to_integer (astarte_data_t data, int32_t *integer)
 Convert Astarte data (of the integer type) to an int32_t.
 
astarte_result_t astarte_data_to_longinteger (astarte_data_t data, int64_t *longinteger)
 Convert Astarte data (of the long integer type) to an int64_t.
 
astarte_result_t astarte_data_to_string (astarte_data_t data, const char **string)
 Convert Astarte data (of the string type) to a const char *.
 
astarte_result_t astarte_data_to_binaryblob_array (astarte_data_t data, const void ***blobs, size_t **sizes, size_t *count)
 Convert Astarte data (of binaryblob array type) to an array of binaryblob arrays.
 
astarte_result_t astarte_data_to_boolean_array (astarte_data_t data, bool **boolean_array, size_t *len)
 Convert Astarte data (of boolean array type) to a bool array.
 
astarte_result_t astarte_data_to_datetime_array (astarte_data_t data, int64_t **datetime_array, size_t *len)
 Convert Astarte data (of datetime array type) to an int64_t array.
 
astarte_result_t astarte_data_to_double_array (astarte_data_t data, double **double_array, size_t *len)
 Convert Astarte data (of double array type) to a double array.
 
astarte_result_t astarte_data_to_integer_array (astarte_data_t data, int32_t **integer_array, size_t *len)
 Convert Astarte data (of integer array type) to an int32_t array.
 
astarte_result_t astarte_data_to_longinteger_array (astarte_data_t data, int64_t **longinteger_array, size_t *len)
 Convert Astarte data (of longinteger array type) to an int64_t array.
 
astarte_result_t astarte_data_to_string_array (astarte_data_t data, const char ***string_array, size_t *len)
 Convert Astarte data (of string type) to a const char* array.
 

Detailed Description

Definitions for Astarte base data type.