Data point mapping module interface header file. More...
#include "mcl_connectivity/mcl_connectivity_common.h"
Go to the source code of this file.
Typedefs | |
typedef struct mcl_mapping_t | mcl_mapping_t |
Functions | |
MCL_CONNECTIVITY_EXPORT mcl_error_t | mcl_mapping_initialize (mcl_mapping_t **mapping) |
MCL_CONNECTIVITY_EXPORT mcl_error_t | mcl_mapping_set_parameter (mcl_mapping_t *mapping, E_MCL_MAPPING_PARAMETER parameter, const void *value) |
MCL_CONNECTIVITY_EXPORT void | mcl_mapping_destroy (mcl_mapping_t **mapping) |
Data point mapping module interface header file.
Agents are expected to map data points (defined in data source configuration uploaded to MindSphere) to assets before they start exchanging their timeseries data.
This module enables the agent to initialize a mapping structure using mcl_mapping_initialize function. Following initialization, the parameters of this mapping can be set using mcl_mapping_set_parameter function.
Once the mapping structure is finalized, mapping can be created on MindSphere using mcl_connectivity_create_mapping function.
Click here for further information about data point mapping.
Definition in file mcl_mapping.h.
typedef struct mcl_mapping_t mcl_mapping_t |
Handle for mapping.
Definition at line 32 of file mcl_mapping.h.
Parameters for mapping.
Definition at line 37 of file mcl_mapping.h.
MCL_CONNECTIVITY_EXPORT void mcl_mapping_destroy | ( | mcl_mapping_t ** | mapping | ) |
This function destroys mapping data structure.
[in] | mapping | Mapping handle which is going to be destroyed. |
Definition at line 103 of file mapping.c.
References MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FREE, and MCL_NULL.
MCL_CONNECTIVITY_EXPORT mcl_error_t mcl_mapping_initialize | ( | mcl_mapping_t ** | mapping | ) |
This function creates and initializes a data struct of mcl_mapping_t.
[out] | mapping | Mapping handle which is going to be initialized. |
mapping
is null. Definition at line 14 of file mapping.c.
References MCL_ASSERT_NOT_NULL, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_ERROR_STRING, MCL_FUNCTION_LEAVE_LABEL, MCL_NEW, MCL_NULL, MCL_OK, MCL_OUT_OF_MEMORY, and MCL_TRUE.
MCL_CONNECTIVITY_EXPORT mcl_error_t mcl_mapping_set_parameter | ( | mcl_mapping_t * | mapping, |
E_MCL_MAPPING_PARAMETER | parameter, | ||
const void * | value | ||
) |
This function is used to set a parameter of a mapping.
[in] | mapping | Mapping to set its parameter. |
[in] | parameter | One of the parameters listed in E_MCL_MAPPING_PARAMETER. |
[in] | value | New value of the parameter . |
mapping
or value
is NULL. parameter
is invalid. Definition at line 44 of file mapping.c.
References MCL_ASSERT_NOT_NULL, MCL_DEBUG_ENTRY, MCL_DEBUG_LEAVE, MCL_FUNCTION_LEAVE_LABEL, MCL_INVALID_PARAMETER, MCL_MAPPING_PARAMETER_DATA_POINT_ID, MCL_MAPPING_PARAMETER_ENTITY_ID, MCL_MAPPING_PARAMETER_KEEP_MAPPING, MCL_MAPPING_PARAMETER_PROPERTY_NAME, MCL_MAPPING_PARAMETER_PROPERTY_SET_NAME, MCL_OK, and mcl_string_util_reset().