All Products
Search
Document Center

IoT Platform:Device tasks

Last Updated:Oct 31, 2024

The IoT Platform supports the device task feature, enabling simultaneous property configuration, asynchronous service invocation, message delivery, and custom tasks across multiple devices. This topic outlines the utilization of a device task.

Instructions

Device tasks on the IoT Platform execute specific functions on devices using predefined JSON rule files.

Task

Description

Add custom task

Create a custom rule file and device list file tailored to your business needs.

Develop the functionality and logic for the custom task on the device, adhering to the Alink protocol data format specified by the IoT Platform.

Add property configuration task

For devices within a product or group sharing the same Thing Specification Language (TSL) property ID, configure multiple properties simultaneously using a batch property configuration task.

Add service invocation task

For devices within a product or group sharing the same asynchronous TSL service ID, invoke these services in batch with a service call task.

Add batch message delivery task

Utilize this task to publish messages to multiple devices with the same custom topic suffix using the Pub interface in batch.

The custom topic format is /${productKey}/${deviceName}/user/${TopicShortName}, where ${TopicShortName} is the custom topic suffix. For more information, see the referenced document.

Limits

  • Public instance: Device tasks are available exclusively in the China (Shanghai) region.

  • Enterprise edition instance: Device tasks are supported in multiple regions, including China (Shanghai), China (Beijing), China (Shenzhen), Singapore, US (Virginia), US (Silicon Valley), and Germany (Frankfurt).

Process description

The diagrams below illustrate the workflows for various types of device tasks:

Create the appropriate device tasks to meet your business requirements. For detailed instructions, refer to: