added debugging

Fork of BLE_nRF8001 by RedBearLab

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?

UserRevisionLine numberNew 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 }