Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BLE_nRF8001 by
BLEAttribute.h
00001 #ifndef _BLE_ATTRIBUTE_H_ 00002 #define _BLE_ATTRIBUTE_H_ 00003 00004 enum BLEAttributeType { 00005 BLETypeService = 0x2800, 00006 BLETypeCharacteristic = 0x2803, 00007 BLETypeDescriptor = 0x2900 00008 }; 00009 00010 #define BLE_ATTRIBUTE_MAX_VALUE_LENGTH 19 00011 00012 class BLEAttribute 00013 { 00014 public: 00015 BLEAttribute(const char* uuid, enum BLEAttributeType type); 00016 const char* uuid() const; 00017 00018 enum BLEAttributeType type() const; 00019 00020 protected: 00021 static unsigned char numAttributes(); 00022 00023 private: 00024 static unsigned char _numAttributes; 00025 00026 const char* _uuid; 00027 enum BLEAttributeType _type; 00028 }; 00029 00030 #endif
Generated on Tue Jul 12 2022 15:15:46 by
1.7.2
