TuyaOS
函数
tkl_attribute_rw.h 文件参考

Common process - attribute read/write 更多...

#include "tuya_cloud_types.h"
#include "tuya_zigbee_stack.h"
#include "tkl_endpoint_register.h"
tkl_attribute_rw.h 的引用(Include)关系图:

浏览源代码.

函数

OPERATE_RET tkl_zg_read_attribute (TKL_CLUSTER_TRIPLET_T *triplet, UINT16_T attr_id, VOID_T *data, UINT8_T len)
 read attribute 更多...
 
OPERATE_RET tkl_zg_write_attribute (TKL_CLUSTER_TRIPLET_T *triplet, UINT16_T attr_id, VOID_T *data, ZG_ATTR_TYPE_E type)
 write attribute 更多...
 

详细描述

Common process - attribute read/write

版本
1.0.0
日期
2021-04-30

函数说明

◆ tkl_zg_read_attribute()

OPERATE_RET tkl_zg_read_attribute ( TKL_CLUSTER_TRIPLET_T triplet,
UINT16_T  attr_id,
VOID_T *  data,
UINT8_T  len 
)

read attribute

参数
[in]tripletattribute triplet
[in]attr_idattribute id
[in]datapointer to the data buff
[in]lenlength of read data
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h

◆ tkl_zg_write_attribute()

OPERATE_RET tkl_zg_write_attribute ( TKL_CLUSTER_TRIPLET_T triplet,
UINT16_T  attr_id,
VOID_T *  data,
ZG_ATTR_TYPE_E  type 
)

write attribute

参数
[in]tripletattribute triplet
[in]attr_idattribute id
[in]datapointer to the data buff
[in]typeattribute type
返回
OPRT_OK on success. Others on error, please refer to tuya_error_code.h