addCommandToCache(params: AddCommandToCacheParams)
Requires:
@tuya-miniapp/cloud-api≥1.0.5
Description
Add a command (a JSON string of DP key-value pairs) to the cloud cache so it can be delivered to the specified device later. Supports Wi-Fi and ZigBee devices.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Request body |
Return Value
Type: Promise<boolean>
Operation result; true indicates success. In the documentation, the return parameter is labeled result (boolean).