Airoha M0 BLE API  1.0.5.4
SDK_ATTRIBUTE Struct Reference

Detailed Description

SDK_ATTRIBUTE member description:

dataptr: The pointer of attribute value

CBfunc: The CallBack function that would be executed before this attribute is going to be read and after this attribute has just been written

uuid_t: It is an union that Member 1 (uuid) stands for 16-bit UUID or the data pointer of 128-bit UUID Member 2 (type) specifies it is either 16-bit or 128-bit UUID

permission: It specifies the read/write permission of this attribute. Four levels of permission for Read and Write action separately. Please find definition of "ATT_READ_WRITE_PERMISSION_ENUM" for further reference

currentLen: The current attribute length. If it is a variable length attribute (maximumLen != 0), it might be changed during ATT write operation (request/command)

maximumLen: The maximum valid length of this attribute for variable length attributes. For fixed length attributes, it should be set to zero.

handle: The attribute handle of this attribute in the attribute server. It is not necessarily equal to server index.