Holla back

Fork of BLE_API by Bluetooth Low Energy

Embed: (wiki syntax)

« Back to documentation index

GattAttribute Class Reference

GattAttribute Class Reference

GATT attribute. More...

#include <GattAttribute.h>

Public Member Functions

 GattAttribute (const UUID &uuid, uint8_t *valuePtr=NULL, uint16_t initialLen=0, uint16_t maxLen=0)
 Creates a new GattAttribute using the specified UUID, value length, and inital value.

Detailed Description

GATT attribute.

Definition at line 29 of file GattAttribute.h.


Constructor & Destructor Documentation

GattAttribute ( const UUID &  uuid,
uint8_t *  valuePtr = NULL,
uint16_t  initialLen = 0,
uint16_t  maxLen = 0 
)

Creates a new GattAttribute using the specified UUID, value length, and inital value.

Parameters:
[in]uuidThe UUID to use for this attribute
[in]valuePtrThe memory holding the initial value.
[in]initialLenThe min length in bytes of this characteristic's value
[in]maxLenThe max length in bytes of this characteristic's value

EXAMPLE

  // UUID = 0x2A19, Min length 2, Max len = 2, Properties = write
  GattCharacteristic c = GattCharacteristic( 0x2A19, 2, 2, BLE_GATT_CHAR_PROPERTIES_WRITE );

Definition at line 58 of file GattAttribute.h.