TuyaOS
|
meta report 更多...
#include "tuya_cloud_types.h"
#include "ty_cJSON.h"
宏定义 | |
#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
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.
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
[in] | metas | Meta capability, i.e {k1:v1, k2:v2} |
[in] | mode | Report mode, |
OPERATE_RET ty_meta_reset | ( | VOID | ) |
reset kv meta info