A Thing Specification Language (TSL) model defines the data model of a product in Alibaba Cloud IoT Platform. You can configure the C Link SDK to exchange TSL model data with IoT Platform.
Prerequisites
- You have the device authentication information.
- Add a TSL model.
-
When you customize the SDK, on the SDK Customization page, in the Advanced Capabilities section, select TSL Model.
- Set up the development environment.
Background information
- To learn about the TSL model feature of IoT Platform, see What is a TSL model?.
- For details about TSL model data formats, see Device properties, events, and services.
How it works
A device connects to IoT Platform over Message Queuing Telemetry Transport (MQTT) to report properties and events, and to receive instructions for setting properties and calling services.
./demos/data_model_basic_demo.c
For details about TSL model APIs, see aiot_dm_api.h.
Examples
- TSL model usage example.
- Descriptions of status codes in aiot_dm_api.h status code descriptions.