Common process - Initialization
更多...
#include "tuya_cloud_types.h"
浏览源代码.
Common process - Initialization
- 作者
- liuka.nosp@m.ng@t.nosp@m.uya.c.nosp@m.om
- 版本
- 0.1
- 日期
- 2020-11-09
- 版权所有
- Copyright 2020-2021 Tuya Inc. All Rights Reserved.
◆ tuya_svc_timer_get_task_count()
| UINT_T tuya_svc_timer_get_task_count |
( |
VOID_T |
| ) |
|
Get the count of timer task.
- 参数
-
- 注解
- This API is used for getting the count of timer task.
- 返回
- the count of timer task.
◆ tuya_svc_timer_task_clear_db()
| OPERATE_RET tuya_svc_timer_task_clear_db |
( |
VOID_T |
| ) |
|
Clear up the timer task data in flash.
- 参数
-
- 注解
- This API is used to clear up the timer task data in flash.
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ tuya_svc_timer_task_init()
| OPERATE_RET tuya_svc_timer_task_init |
( |
UINT_T |
increase_unit | ) |
|
Init a timer task.
- 参数
-
| [in] | increase_unit | increase unit |
- 注解
- This API is used for initializing the timer task. when the task queue is full, it will expand the size with the unit user input.
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h
◆ tuya_svc_timer_task_reset()
| OPERATE_RET tuya_svc_timer_task_reset |
( |
VOID_T |
| ) |
|
Reset the timer task.
- 参数
-
- 注解
- This API is used to reset the timer task. the resource of timer task will be released.
- 返回
- OPRT_OK on success. Others on error, please refer to tuya_error_code.h