added debugging
Fork of BLE_nRF8001 by
BLE_nRF8001/BLEDescriptor.h@2:7805a5595aab, 2014-11-10 (annotated)
- Committer:
- jn80842
- Date:
- Mon Nov 10 01:24:23 2014 +0000
- Revision:
- 2:7805a5595aab
- Parent:
- 0:075ea2812998
just added debugging
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RedBearLab | 0:075ea2812998 | 1 | #ifndef _BLE_DESCRIPTOR_H_ |
RedBearLab | 0:075ea2812998 | 2 | #define _BLE_DESCRIPTOR_H_ |
RedBearLab | 0:075ea2812998 | 3 | |
RedBearLab | 0:075ea2812998 | 4 | #include "BLEAttribute.h" |
RedBearLab | 0:075ea2812998 | 5 | |
RedBearLab | 0:075ea2812998 | 6 | class BLEDescriptor : public BLEAttribute |
RedBearLab | 0:075ea2812998 | 7 | { |
RedBearLab | 0:075ea2812998 | 8 | public: |
RedBearLab | 0:075ea2812998 | 9 | BLEDescriptor(const char* uuid, unsigned char valueSize); |
RedBearLab | 0:075ea2812998 | 10 | BLEDescriptor(const char* uuid, const char* value); |
RedBearLab | 0:075ea2812998 | 11 | |
RedBearLab | 0:075ea2812998 | 12 | virtual ~BLEDescriptor(); |
RedBearLab | 0:075ea2812998 | 13 | |
RedBearLab | 0:075ea2812998 | 14 | unsigned char valueSize() const; |
RedBearLab | 0:075ea2812998 | 15 | const unsigned char* value() const; |
RedBearLab | 0:075ea2812998 | 16 | unsigned char valueLength() const; |
RedBearLab | 0:075ea2812998 | 17 | |
RedBearLab | 0:075ea2812998 | 18 | void setValue(const unsigned char value[], unsigned char length); |
RedBearLab | 0:075ea2812998 | 19 | void setValue(const char* value); |
RedBearLab | 0:075ea2812998 | 20 | |
RedBearLab | 0:075ea2812998 | 21 | private: |
RedBearLab | 0:075ea2812998 | 22 | const char* _uuid; |
RedBearLab | 0:075ea2812998 | 23 | unsigned char _valueSize; |
RedBearLab | 0:075ea2812998 | 24 | unsigned char* _value; |
RedBearLab | 0:075ea2812998 | 25 | unsigned char _valueLength; |
RedBearLab | 0:075ea2812998 | 26 | }; |
RedBearLab | 0:075ea2812998 | 27 | |
RedBearLab | 0:075ea2812998 | 28 | #endif |