Last Updated on : 2020-07-29 02:55:02download
Custom function: allows you to create functions that are not supported by standard function.
Data point (DP) is the abstract representation of function, and each function can be defined by different function types. Six data types are available now, namely Boolean, Integer, Enum, Fault, Char type and RAW type.
More details about defining data points are described as follows.
Data point: represents functions of smart devices and parameters.
DP ID: indicates code of a data point. Subsequent function data transfer between the device and the cloud is through data point ID.
Name: indicates name of a custom function.
Identifier: indicates code value of a data point, displaying function name in multi-language on the app. Support letters, digits and underlines, starting with a letter.
Data transfer type:
Application: represents binary variable value (true or false).
Instance: device switch, child lock on heating device, fan head, resetting filter cartridge for air purifier and so on.
Application: represents data that can be linearly adjusted.
If you have any further questions, refer to Integer FAQ.
Application: represents custom finite set value.
Note: when editing function points, enum value supports letters, digits and underlines. After you press the Enter key, the enum value will be automatically generated. Code of enum value starts from 0, and data is transferred in enum code during hardware integration testing. The length of each enum value cannot exceed 15 characters, and a maximum of 10 enum values can be defined. Each time you enter an enum value, press the Enter key to generate a value.
If you have any further questions, refer to Enum FAQ.
Application: specified for fault report and statistics. Later, this function will be used for statistics.
Note: fault data is in the format of bitmap, so defining multiple faults is available. The fault only supports data report, so just Only report is available in data transfer type.
If any further questions, refer to Fault FAQ.
Application: indicates data transfer in char type. If the product definition cannot be completed by above four function types, you can choose char type as the data transfer type.
Note: the length of a single char type cannot exceed 255 bytes.
Application: indicates data transfer in a raw binary format. Generally, it is recommended to use raw data transfer when the other five types cannot cope with the complicated product functions.
Note: the length of raw data cannot exceed 255 bytes.
At present, it is recommended that the number of standard data points and custom data points for each product should not exceed 40. If the total number exceeds the maximum, test the product stability.
For more FAQ about function definitions, refer to Function Definitions FAQ.