MindConnect Library – Agent Application¶
For an agent application to use MCL, first step would be to initialize core configuration data structure (mcl_core_configuration_t) and set the values of configuration parameters. See mcl_core_configuration.h for details.
Core configuration data structure is then used to initialize MCL core component. The core component instance (mcl_core_t) is later used to onboard the agent to MindSphere, rotate keys when required and retrieve access token for connectivity services. The core component handle is also required to initialize MCL connectivity extension. See mcl_core.h for details.
To access to connectivity services of MindSphere, the agent must initialize MCL connectivity extension component. The connectivity extension instance (mcl_connectivity_t) is later used to exchange data with MindSphere. See mcl_connectivity.h for details.
The agent can exchange predefined data types or any custom data type to MindSphere with MCL. The predefined data types are data source configuration, timeseries, event and file. See mcl_data_source_configuration.h, mcl_timeseries.h, mcl_event.h and mcl_file.h for details on how to create and exchange predefined data types with MindSphere. For custom data type, see mcl_custom_data.h.
Agents have the option to exchange each data item as a single or they have the option to exchange multiple data items independent of their types together in a store (mcl_store_t). See mcl_store.h for details.
Any questions left?
Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.