added debugging

Fork of BLE_nRF8001 by RedBearLab

Revision:
0:075ea2812998
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BLE_nRF8001/BLEAttribute.cpp	Fri Oct 17 22:40:32 2014 +0800
@@ -0,0 +1,22 @@
+#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;
+}