added debugging
Fork of BLE_nRF8001 by
BLE_nRF8001/BLEUuid.h@0:075ea2812998, 2014-10-17 (annotated)
- Committer:
- RedBearLab
- Date:
- Fri Oct 17 22:40:32 2014 +0800
- Revision:
- 0:075ea2812998
BLE_nRF8001 library first commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RedBearLab | 0:075ea2812998 | 1 | #ifndef _BLE_UUID_H_ |
RedBearLab | 0:075ea2812998 | 2 | #define _BLE_UUID_H_ |
RedBearLab | 0:075ea2812998 | 3 | |
RedBearLab | 0:075ea2812998 | 4 | #define MAX_UUID_LENGTH 16 |
RedBearLab | 0:075ea2812998 | 5 | |
RedBearLab | 0:075ea2812998 | 6 | class BLEUuid |
RedBearLab | 0:075ea2812998 | 7 | { |
RedBearLab | 0:075ea2812998 | 8 | public: |
RedBearLab | 0:075ea2812998 | 9 | BLEUuid(const char * str); |
RedBearLab | 0:075ea2812998 | 10 | |
RedBearLab | 0:075ea2812998 | 11 | const char* str(); |
RedBearLab | 0:075ea2812998 | 12 | const unsigned char* data(); |
RedBearLab | 0:075ea2812998 | 13 | unsigned char length(); |
RedBearLab | 0:075ea2812998 | 14 | |
RedBearLab | 0:075ea2812998 | 15 | private: |
RedBearLab | 0:075ea2812998 | 16 | const char* _str; |
RedBearLab | 0:075ea2812998 | 17 | unsigned char _data[MAX_UUID_LENGTH]; |
RedBearLab | 0:075ea2812998 | 18 | unsigned char _length; |
RedBearLab | 0:075ea2812998 | 19 | }; |
RedBearLab | 0:075ea2812998 | 20 | |
RedBearLab | 0:075ea2812998 | 21 | #endif |