TuyaOS
宏定义 | 枚举 | 函数
ty_meta_report.h 文件参考

meta report 更多...

#include "tuya_cloud_types.h"
#include "ty_cJSON.h"
ty_meta_report.h 的引用(Include)关系图:

浏览源代码.

宏定义

#define KV_META_REPORT   "kv.meta.report"
 

枚举

enum  META_REPORT_MODE_E { REPORT_MODE_DEFAULT , REPORT_MODE_FORCE }
 Definition of metas report mode
 

函数

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 更多...
 
OPERATE_RET ty_meta_reset (VOID)
 reset kv meta info 更多...
 

详细描述

meta report

版本
0.1
日期
2022-09-22

Permission is hereby granted, to any person obtaining a copy of this software and associated documentation files (the "Software"), Under the premise of complying with the license of the third-party open source software contained in the software, to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

函数说明

◆ ty_meta_init()

OPERATE_RET ty_meta_init ( VOID  )

Init meta report

返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ ty_meta_report()

OPERATE_RET ty_meta_report ( ty_cJSON meta,
META_REPORT_MODE_E  mode 
)

Report meta capability to cloud

参数
[in]metasMeta capability, i.e {k1:v1, k2:v2}
[in]modeReport mode,
参见
META_REPORT_MODE_E
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ ty_meta_reset()

OPERATE_RET ty_meta_reset ( VOID  )

reset kv meta info

返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h