added debugging

Fork of BLE_nRF8001 by RedBearLab

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers BLEAttribute.cpp Source File

BLEAttribute.cpp

00001 #include "BLEAttribute.h"
00002 
00003 unsigned char BLEAttribute::_numAttributes = 0;
00004 
00005 BLEAttribute::BLEAttribute(const char* uuid, enum BLEAttributeType type) :
00006   _uuid(uuid),
00007   _type(type)
00008 {
00009   _numAttributes++;
00010 }
00011 
00012 const char* BLEAttribute::uuid() const {
00013   return this->_uuid;
00014 }
00015 
00016 enum BLEAttributeType BLEAttribute::type() const {
00017   return this->_type;
00018 }
00019 
00020 unsigned char BLEAttribute::numAttributes() {
00021   return _numAttributes;
00022 }