set_attribute
接口声明
int set_attribute(int fd, unsigned int buffSize, unsigned char *buff)
参数介绍
参数名 |
类型 |
说明 |
---|---|---|
fd |
int |
设备文件描述符 |
buffSize |
unsigned int |
缓存数组空间大小 |
buff |
unsigned char* |
用来传递数据的缓存 |
功能说明
设置属性接口,根据传入“fd”值确定唯一设备,通过TLV编码的buff解析获取属性id并设置对应属性值。
父主题: 接口参考