GATT Attributes

A GATT Server contains data organized in the form of Attributes. An Attribute is a piece of labeled, addressable data; or metadata about the attribute:

  • Contained within the Server
  • Accessed by the Client


An Attribute has the following structure:

attribute-structure.png

Attribute Handle

A unique 16-bit identifier

  • Makes the attribute "addressable"
  • Does not change

Handle values grow in an ordered sequence on a server (gaps are allowed) and are discovered by the Client during a Discovery Procedure

Attribute Type (UUID)

Determines the kind of data present in the value of the attribute. Uses a 2 or 16-byte universally unique identifier (UUID). Examples include:

  • Service UUID
  • Characteristic UUID
  • Profile UUID
  • Vendor-Specified UUID

Attribute Value

Holds the actual data content, which is accessible by a Client. Can also hold metadata about the attribute (depending on the Type).

There are no restrictions on the type of data it can contain, however, the maximum length is limited to 512 bytes by the BLE specification

Attribute Permissions

These are attribute metadata that specify:

  • ATT access operations allowed on the Attribute Value
    • Read Operations
    • Write Operations
    • No Operations
  • Security requirements
    • Encryption (level required)
    • Authorization required (Yes/No)
© 2016 Microchip Technology, Inc.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.