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_API by
Diff: GattCharacteristic.h
- Revision:
- 57:29d592d8729f
- Parent:
- 55:8f7ca1ae50d7
- Child:
- 65:100b50423049
--- a/GattCharacteristic.h Thu May 29 08:57:57 2014 +0100
+++ b/GattCharacteristic.h Thu May 29 09:50:47 2014 +0100
@@ -418,13 +418,32 @@
uint8_t properties = 0);
virtual ~GattCharacteristic(void);
+public:
+ uint16_t getHandle(void) const {
+ return handle;
+ }
+ void setHandle(uint16_t id) {
+ handle = id;
+ }
+ const UUID &getUUID(void) const {
+ return uuid;
+ }
+ uint8_t getProperties(void) const {
+ return properties;
+ }
+ uint16_t getMinLength(void) const {
+ return lenMin;
+ }
+ uint16_t getMaxLength(void) const {
+ return lenMax;
+ }
+
+private:
UUID uuid; /* Characteristic UUID */
uint16_t lenMin; /* Minimum length of the value */
uint16_t lenMax; /* Maximum length of the value */
uint16_t handle;
uint8_t properties;
-
-private:
};
#endif // ifndef __GATT_CHARACTERISTIC_H__
