resetStatistics(data: IDevId)

Requires:
@tuya-miniapp/cloud-api≥1.0.5

Description

Reset the device’s statistical data.

Parameters

ParameterTypeRequiredDescription
YesRequest body

Return Value

Type: Promise<boolean>
The docs show a response of true; this function returns Promise<any>, subject to the actual wrapper

Examples

Request example

import { resetStatistics } from '@tuya-miniapp/cloud-api';

resetStatistics({
  devId: 'vdevo161733425146241',
})
  .then((response) => {
    console.log(response);
  })
  .catch();

Response example

true