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