updateTimer(params: Object)
Requires:
DeviceKit≥1.2.6@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Description
Update a timer
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
deviceId | string | No | deviceId Device ID; at least one of deviceId or groupId is required |
groupId | string | No | groupId Group ID; at least one of deviceId or groupId is required |
| Yes | timer Timer model to update | ||
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None