added debugging
Fork of BLE_nRF8001 by
Diff: BLE_nRF8001/BLEAttribute.h
- Revision:
- 0:075ea2812998
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BLE_nRF8001/BLEAttribute.h Fri Oct 17 22:40:32 2014 +0800 @@ -0,0 +1,30 @@ +#ifndef _BLE_ATTRIBUTE_H_ +#define _BLE_ATTRIBUTE_H_ + +enum BLEAttributeType { + BLETypeService = 0x2800, + BLETypeCharacteristic = 0x2803, + BLETypeDescriptor = 0x2900 +}; + +#define BLE_ATTRIBUTE_MAX_VALUE_LENGTH 19 + +class BLEAttribute +{ + public: + BLEAttribute(const char* uuid, enum BLEAttributeType type); + const char* uuid() const; + + enum BLEAttributeType type() const; + + protected: + static unsigned char numAttributes(); + + private: + static unsigned char _numAttributes; + + const char* _uuid; + enum BLEAttributeType _type; +}; + +#endif