After you create a product, you must define its features. This is also known as defining a Thing Specification Language (TSL) model.
Features have three elements: properties, events, and services.
| The Three Elements of a Feature | Description |
| Property | Used to describe the runtime status of a device. Supports reading and setting the status, such as on/off, temperature, and color. |
| Service | Used to implement complex business logic. A service can include input and output parameters. It lets a device perform a specific task. For example, an oven's baking feature requires time and temperature settings. |
| Event | Used to describe runtime events of a device, such as instant notifications. An event can also include multiple output parameters. For example, an event can be triggered when a human infrared sensor detects a person, or when an air conditioner reports a failure. |
The products that you create have the following two types of features.
| Feature type | Description |
| Standard function | The platform creates default standard functions for each category based on the ICA Data Standard. |
| Custom feature | If the standard functions do not match the characteristics of your device, you can also define custom features. |
You must define a TSL model for each product. For more information, see TSL Model Overview.
| Feature type | Description |
| View TSL model | After you define the features, the platform automatically generates a TSL model in JSON format based on the standard and custom features. |
| Export TSL model | When you view the TSL model, you can export it. For more information, see Export a TSL model. |
该文章对您有帮助吗?