Skip to content

Custom Feature

Personalized features can be defined according to specific hardware product features or usage scenarios. Custom features only work for the current product.

Add a Custom Feature

In "Draft Mode" on the "Define Feature" page, you can add custom features by clicking "Add a Custom Feature" under "Custom Features" tab.

Add a Custom Property

In the pop-up window, select "Property" in the feature type drop-down box and enter the required parameters, then click "Confirm" to add a custom property.

img

Parameters

ParametersDescription
Feature IDProperties, events, and services of each product are unique. The system assigns an ID by default and supports custom input of positive integers within the range of 1 to 8000.
Feature NameName of the property, such as power consumption. The value cannot exceed 128 characters.
IdentifierThe identifier of the feature, which corresponds to the feature ID. Application uses it to exchange the key fields with the device. Properties, events, and services of each TSL model are unique.
Data TypeSupported Data Types: BOOL, INT, FLOAT, DOUBLE, ENUM, TEXT, DATE, RAW, STRUCT, ARRAY. See Supported Data Types for details.
Value RangeIf the data type is numeric (INT/FLOAT/DOUBLE), the minimum and maximum values can be limited.
Step LengthIf the data type is numeric (INT/FLOAT/DOUBLE), you can set the minimum granularity of property variations.
UnitIf the data type is numeric (INT/FLOAT/DOUBLE), you can enter the corresponding unit according to feature types.
Data LengthIf the data type is TEXT, you must limit the length of the text. Maximum text length cannot exceed 10,240 bytes.
Maximum Number of ElementsWhen the data type is ARRAY, you must set the maximum length of the array.
Element TypeWhen the data type is ARRAY, you must specify the element type in the array to make sure that every array element is of the same type.
Read/Write Feature SubtypeR: read only; W: write only; RW: read and write.
DescriptionDescription or remarks on the feature. Maximum length cannot exceed 200 characters.

Add a Custom Event

In the pop-up window, select "Event" in the feature type drop-down box and enter the required parameters, then click "Confirm" to add a custom event.

img

Parameters

ParameterDescription
Feature IDProperties, events, and services of each product are unique. The system assigns a ID by default and supports custom input of positive integers within the range of 1 to 8000.
Feature NameName of the event, such as over-voltage alert. The value cannot exceed 128 characters.
IdentifierThe identifier of the feature, which corresponds to the feature ID. Application uses it to exchange the key fields with the device. Properties, events, and services of each TSL model are unique.
Event TypeMessage: a general notification reported by a device, such as the completion of a task.
Alert: an emergency or exception that a running device actively reports to Developer Center. The alert information has a high priority and requires immediate attention.
Fault: an emergency or exception that a running device actively reports to Developer Center. The fault information has a high priority and requires immediate attention.
Output ParameterThe output parameters of an event are used to carry a property or a custom parameter when an alert or fault event is triggered. For example, if a fault event is defined and the voltage property is selected as the output parameter, the voltage value of the device will be carried in the fault event reported by the device. This information can be used to determine the cause of the fault and take appropriate actions.
DescriptionDescription or remarks on the feature. Maximum length cannot exceed 200 characters.

Add a Custom Service

In the pop-up window, select "Service" in the feature type drop-down box and enter the required parameters, then click "Confirm" to add a custom service.

img

Parameters

ParameterDescription
Feature IDProperties, events, and services of each product are unique. The system assigns a ID by default and supports custom input of positive integers within the range of 1 to 8000.
Feature NameName of the service, such as open/close gate. The value cannot exceed 128 characters.
IdentifierThe identifier of the feature, which corresponds to the feature ID. Application uses it to exchange the key fields with the device. Properties, events, and services of each TSL model are unique.
Call TypeASYNC: The service is called asynchronously, and Developer Center returns the results directly without waiting for a response from the device. You can correlate the device's response with the message through the ticketID.
Input ParameterThe input parameter of the service, which is optional. Click "Add a Parameter" to add the service input parameter in the pop-up window. You can use a property or customize a parameter as an input parameter.
Output ParameterThe output parameter of the service, which is optional. Click "Add a Parameter" to add the service output parameter in the pop-up window. You can use a property or customize a parameter as an output parameter.
DescriptionDescription or remarks on the feature. Maximum length cannot exceed 200 characters.

Release Application

After defining the product feature, click "Save Changes". Upon success, changes work for all devices under the product. These devices need to transmit data according to the latest TSL model definitions.

img