All Products
Search
Document Center

Marketplace:Thing model (property,service,event) communication

Last Updated:Mar 25, 2025
Important

DISCLAIMER

Please note that all content presented on this page is provided by Tuya (HK) Limited. Alibaba Cloud makes no representations and warranties, explicit or implied, as to the authenticity or accuracy of any such content, nor makes any guarantee to the condition, quality, durability, performance, reliability, merchantability or fitness for a particular purpose, or non-infringement of any products and/or services made available by Tuya (HK) Limited. 

After you define the object model for the product, the device needs to follow Alink JSON format escalation Attributes or event , if other formats need to be converted through the message parsing function, the server set Properties or invoke service the same to satisfy Alink JSON format. This article introduces you to the object model data. Alink JSON format and Topic.

Background Information

For the data format of the object model (property, event, service), see What is a TSL model?. There are two types of data reporting methods for devices: ICA standard data format (Alink JSON) and pass-through/custom. Choose one of the two, recommend you use the Alink JSON method.

  • ICA standard data format (Alink JSON): devices generate data in the standard data format defined by IoT platform, and then report the data. For the specific format, see the example in this article.

  • Transparent/Custom: The device reports raw data, such as binary data streams, and the Alibaba Cloud IoT Platform runs Message parsing, convert the original data into a standard data format, and then perform business processing. The cloud returns the standard Alink JSON format, and the returned results are parsed and then pushed to the device.

image.png

Important ●When the TSL function defines the data type as float or double, the corresponding parameter value (even if the value is an integer) carries at least one decimal place. For example, 10.0, 11.1. ●When a device reports object model attribute and event data, it can only report data within the next 24 hours. If reported time if this time range is exceeded, the escalation will fail. ●The message ID ( ID ) Is unique in the current device and is guaranteed to be unique in the daily message. Downstream messages in the IoT platform cloud ID the asynchronous downlink message is used to match the return response of the device end, and the Internet of Things platform system guarantees the uniqueness of each day. In device-side uplink messages ID the equipment shall ensure the uniqueness of each day by itself.