added debugging
Fork of BLE_nRF8001 by
BLE_nRF8001/BLEAttribute.cpp@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 | #include "BLEAttribute.h" |
RedBearLab | 0:075ea2812998 | 2 | |
RedBearLab | 0:075ea2812998 | 3 | unsigned char BLEAttribute::_numAttributes = 0; |
RedBearLab | 0:075ea2812998 | 4 | |
RedBearLab | 0:075ea2812998 | 5 | BLEAttribute::BLEAttribute(const char* uuid, enum BLEAttributeType type) : |
RedBearLab | 0:075ea2812998 | 6 | _uuid(uuid), |
RedBearLab | 0:075ea2812998 | 7 | _type(type) |
RedBearLab | 0:075ea2812998 | 8 | { |
RedBearLab | 0:075ea2812998 | 9 | _numAttributes++; |
RedBearLab | 0:075ea2812998 | 10 | } |
RedBearLab | 0:075ea2812998 | 11 | |
RedBearLab | 0:075ea2812998 | 12 | const char* BLEAttribute::uuid() const { |
RedBearLab | 0:075ea2812998 | 13 | return this->_uuid; |
RedBearLab | 0:075ea2812998 | 14 | } |
RedBearLab | 0:075ea2812998 | 15 | |
RedBearLab | 0:075ea2812998 | 16 | enum BLEAttributeType BLEAttribute::type() const { |
RedBearLab | 0:075ea2812998 | 17 | return this->_type; |
RedBearLab | 0:075ea2812998 | 18 | } |
RedBearLab | 0:075ea2812998 | 19 | |
RedBearLab | 0:075ea2812998 | 20 | unsigned char BLEAttribute::numAttributes() { |
RedBearLab | 0:075ea2812998 | 21 | return _numAttributes; |
RedBearLab | 0:075ea2812998 | 22 | } |