Function overview

更新时间:
复制 MD 格式

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 FeatureDescription
PropertyUsed to describe the runtime status of a device. Supports reading and setting the status, such as on/off, temperature, and color.
ServiceUsed 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.
EventUsed 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 typeDescription
Standard functionThe platform creates default standard functions for each category based on the ICA Data Standard.
Custom featureIf 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 typeDescription
View TSL modelAfter you define the features, the platform automatically generates a TSL model in JSON format based on the standard and custom features.
Export TSL modelWhen you view the TSL model, you can export it. For more information, see Export a TSL model.