added debugging

Fork of BLE_nRF8001 by RedBearLab

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BLEAttribute.h Source File

BLEAttribute.h

00001 #ifndef _BLE_ATTRIBUTE_H_
00002 #define _BLE_ATTRIBUTE_H_
00003 
00004 enum BLEAttributeType {
00005   BLETypeService        = 0x2800,
00006   BLETypeCharacteristic = 0x2803,
00007   BLETypeDescriptor     = 0x2900
00008 };
00009 
00010 #define BLE_ATTRIBUTE_MAX_VALUE_LENGTH    19
00011 
00012 class BLEAttribute
00013 {
00014   public:
00015     BLEAttribute(const char* uuid, enum BLEAttributeType type);
00016     const char* uuid() const;
00017 
00018     enum BLEAttributeType type() const;
00019 
00020   protected:
00021     static unsigned char numAttributes();
00022 
00023   private:
00024     static unsigned char _numAttributes;
00025 
00026     const char*                 _uuid;
00027     enum BLEAttributeType       _type;
00028 };
00029 
00030 #endif