set_attribute

Declaration

int set_attribute(int fd, unsigned int buffSize, unsigned char *buff)

Parameter Description

Table 1 Parameter description

Parameter

Type

Description

fd

int

Device file descriptor

buffSize

unsigned int

Size of the array cache space

buff

unsigned char*

Cache used to transfer data

Function Description

Sets attributes. The device is determined based on the input fd value. The attribute ID is obtained by parsing the TLV-encoded buffer and the corresponding attribute value is then set.