A Thing Specification Language (TSL) model is a data model that IoT Platform defines for a product. You can configure Link SDK for C to submit device properties and events, and receive commands from IoT Platform to set properties and call services.

Prerequisites

Background information

Process

The application program calls the API operations of Link SDK for C to the connection of the MQTT protocol to communicate with IoT Platform for TSL data.

The following figure shows the process. In this example, the ./demos/data_model_basic_demo.c application program is used.

Process

For more information about TSL model-specific API operations, see aiot_dm_api.h.

Examples

  • For more information about examples, see Example.
  • For more information about error codes, see aiot_dm_api.h..