added debugging

Fork of BLE_nRF8001 by RedBearLab

BLE_nRF8001/BLEAttribute.cpp

Committer:
RedBearLab
Date:
2014-10-17
Revision:
0:075ea2812998

File content as of revision 0:075ea2812998:

#include "BLEAttribute.h"

unsigned char BLEAttribute::_numAttributes = 0;

BLEAttribute::BLEAttribute(const char* uuid, enum BLEAttributeType type) :
  _uuid(uuid),
  _type(type)
{
  _numAttributes++;
}

const char* BLEAttribute::uuid() const {
  return this->_uuid;
}

enum BLEAttributeType BLEAttribute::type() const {
  return this->_type;
}

unsigned char BLEAttribute::numAttributes() {
  return _numAttributes;
}