Overview
Updated at:
The device task feature of IoT Platform lets you send tasks to multiple devices simultaneously. You can target devices by product, individual device, or group. This topic describes how to configure the C Link SDK to enable a device to receive and execute custom tasks.
Prerequisites
- You have the device authentication information.
When you customize the SDK, on the SDK Customization page, in the Advanced Features area, select Task Management.
- Set up the development environment.
Background information
- For more information about the device task feature of IoT Platform, see Device task overview.
- For more information about the Alink data format for device tasks, see Device tasks.
- Device tasks include setting properties, calling services asynchronously, and running custom tasks. This topic describes how a device receives custom tasks. You can use a Thing Specification Language (TSL) model to set properties and call services asynchronously. For more information, see Device-side development for TSL models.
How it works
Using the MQTT protocol, a device receives task notifications from IoT Platform or actively requests task details. After the device processes the task, it updates the task status.
./demos/task_posix_demo.c

For more information about the device task feature APIs, see aiot_task_api.h.
Examples
- Device task examples
- aiot_task_api.hfor status code descriptions.
Is this page helpful?