This topic describes how to create a temperature sensor product and devices. It also
includes definitions for TSL models, and describes how to create data forwarding rules
in the IoT Platform console.
Procedure
- Log on to the IoT Platform console.
- In the left-side navigation pane, choose . On the page that appears, click Create Product to create a product. For more information, see Create a product.
- Define a temperature property.
- On the Product Details page of the product, click the Define Feature tab.
- Click .
- Define a temperature property.
- Click Update to publish the TSL.
- In the left-side navigation pane, click Devices. On the page that appears, click Batch Add to add multiple devices.
In this example, add 5,000 devices. You can add a maximum of 1,000 devices at a time.
Therefore, you must add devices a minimum of five times. For more information, see
Create multiple devices at a time.
- In the left-side navigation pane, click . On the page that appears, create a data forwarding rule to forward the temperature
data reported by the temperature sensor to Function Compute.
- Click Create Rule to create a rule that processes JSON-formatted data.
- Write a SQL statement for data processing.
The SQL statement in this example can be used to filter data from the reported property
data. It will return the value of the deviceName field and Temperature field when
the temperature is higher than 25°C. These two fields are forwarded to Function Compute.

- Add a data forwarding operation and set the data forwarding destination to Function
Compute.
- After the rule configuration is complete, return to the Data Forwarding page and click Start to start implementing the rule.