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
BLEDescriptor.h
00001 #ifndef _BLE_DESCRIPTOR_H_ 00002 #define _BLE_DESCRIPTOR_H_ 00003 00004 #include "BLEAttribute.h" 00005 00006 class BLEDescriptor : public BLEAttribute 00007 { 00008 public: 00009 BLEDescriptor(const char* uuid, unsigned char valueSize); 00010 BLEDescriptor(const char* uuid, const char* value); 00011 00012 virtual ~BLEDescriptor(); 00013 00014 unsigned char valueSize() const; 00015 const unsigned char* value() const; 00016 unsigned char valueLength() const; 00017 00018 void setValue(const unsigned char value[], unsigned char length); 00019 void setValue(const char* value); 00020 00021 private: 00022 const char* _uuid; 00023 unsigned char _valueSize; 00024 unsigned char* _value; 00025 unsigned char _valueLength; 00026 }; 00027 00028 #endif
Generated on Tue Jul 12 2022 15:15:46 by
1.7.2
