GetCustomAttrByBlockId

API定义

APP_ERROR GetCustomAttrByBlockId(uint32_t blockId, uint8_t *&customAttr) const;

功能描述

获取指定blockId的自定义属性。

输入

uint32_t blockId:待获取的blockId。

uint8_t *&customAttr:Device侧的用户自定义特征属性。

输出

返回值

APP_ERROR:调用返回状态,具体请参见接口调用返回值参考

约束说明

“customAttr”长度为customAttrBlockSize * customAttrLen,否则可能出现越界读写的错误并引起程序崩溃。customAttrBlockSize和customAttrLen在InitInitWithExtraVal设置。