This topic describes how to filter data that a device submits to Alibaba Cloud. In this example, a LightSensor device is specified.
Prerequisites
- An edge instance is created. For more information about how to create an edge instance, see Build environments for Link IoT Edge Pro Edition or Build environments for Link IoT Edge Standard Edition.
- A LightSensor device is created and assigned to the edge instance. For more information about how to create the LightSensor product and device, see Sample drivers.
Background information
Sensors constantly submit collected data. For example, a thermometer submits temperature values and a light sensor submits illuminance values. No significant difference exists in data that a device submits. Therefore, users only need to focus on the data that exceeds the limits. Link IoT Edge provides Function Compute-based edge applications to filter data that is submitted to Alibaba Cloud and reduce costs for using Alibaba Cloud resources.

To view device data, click View Data. You can see that values change regularly from 100 to 600 with a difference ±100. Data is submitted every two seconds. Submitting data with a high frequency for a long term may incur unnecessary costs. You can use Function Compute-based edge applications to filter data that the device submits to Alibaba Cloud.
1. Create a data filtering function
2. Assign the function to the edge instance
5. Configure message routing
For more information about how to add a message route and specify parameters, see Configure message routing.