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
33
typedef
enum
{
34
REPORT_MODE_DEFAULT,
// if values already reported, then no more report
35
REPORT_MODE_FORCE,
// force report even if values alread reported
36
}
META_REPORT_MODE_E
;
37
43
OPERATE_RET
ty_meta_init
(VOID);
44
53
OPERATE_RET
ty_meta_report
(
ty_cJSON
*meta,
META_REPORT_MODE_E
mode);
54
55
#ifdef __cplusplus
56
}
57
#endif
58
59
#endif
// __TY_META_REPORT_H__
ty_cJSON
Definition:
ty_cJSON.h:104
META_REPORT_MODE_E
META_REPORT_MODE_E
Definition of metas report mode
Definition:
ty_meta_report.h:33
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