Astarte device API for Zephyr 0.7.2
Astarte device SDK for Zephyr RTOS
Loading...
Searching...
No Matches

Definitions for Astarte object data types. More...

Data Structures

struct  astarte_object_entry_t
 Object entry data type. More...
 

Functions

astarte_object_entry_t astarte_object_entry_new (const char *path, astarte_individual_t individual)
 Initialize an Astarte object entry.
 
astarte_result_t astarte_object_entry_to_path_and_individual (astarte_object_entry_t entry, const char **path, astarte_individual_t *individual)
 Convert an Astarte object entry to an Astarte individual and path.
 

Detailed Description

Definitions for Astarte object data types.

Function Documentation

◆ astarte_object_entry_new()

astarte_object_entry_t astarte_object_entry_new ( const char * path,
astarte_individual_t individual )

Initialize an Astarte object entry.

Parameters
[in]pathPath to store in the entry.
[in]individualIndividual data to store in the entry.
Returns
The Astarte object entry created from the inputs.

◆ astarte_object_entry_to_path_and_individual()

astarte_result_t astarte_object_entry_to_path_and_individual ( astarte_object_entry_t entry,
const char ** path,
astarte_individual_t * individual )

Convert an Astarte object entry to an Astarte individual and path.

Parameters
[in]entryInput Astarte object entry.
[out]pathPath extracted from the entry.
[out]individualIndividual extracted from the entry.
Returns
ASTARTE_RESULT_OK if the conversion was successful, an error otherwise.