TuyaOS
include
components
svc_tuya_cloud
include
misc
ty_meta_report.h
浏览该文件的文档.
1
20
#ifndef __TY_META_REPORT_H__
21
#define __TY_META_REPORT_H__
22
23
#include "tuya_cloud_types.h"
24
#include "ty_cJSON.h"
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
29
30
#define KV_META_REPORT "kv.meta.report"
31
35
typedef
enum
{
36
REPORT_MODE_DEFAULT,
// if values already reported, then no more report
37
REPORT_MODE_FORCE,
// force report even if values alread reported
38
}
META_REPORT_MODE_E
;
39
45
OPERATE_RET
ty_meta_init
(VOID);
46
55
OPERATE_RET
ty_meta_report
(
ty_cJSON
*meta,
META_REPORT_MODE_E
mode);
56
62
OPERATE_RET
ty_meta_reset
(VOID);
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif
// __TY_META_REPORT_H__
ty_cJSON
Definition:
ty_cJSON.h:104
ty_meta_reset
OPERATE_RET ty_meta_reset(VOID)
reset kv meta info
META_REPORT_MODE_E
META_REPORT_MODE_E
Definition of metas report mode
Definition:
ty_meta_report.h:35
ty_meta_init
OPERATE_RET ty_meta_init(VOID)
Init meta report
ty_meta_report
OPERATE_RET ty_meta_report(ty_cJSON *meta, META_REPORT_MODE_E mode)
Report meta capability to cloud
制作者
1.9.4