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
GattCharacteristic.h@23:f19c60478e1b, 2014-01-07 (annotated)
- Committer:
- ktownsend
- Date:
- Tue Jan 07 19:58:06 2014 +0000
- Revision:
- 23:f19c60478e1b
- Parent:
- 11:200931be5617
- Child:
- 27:4a83843f04b0
Added GattService example
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| ktownsend | 2:ffc5216bd2cc | 1 | #ifndef __GATT_CHARACTERISTIC_H__ |
| ktownsend | 2:ffc5216bd2cc | 2 | #define __GATT_CHARACTERISTIC_H__ |
| ktownsend | 2:ffc5216bd2cc | 3 | |
| ktownsend | 2:ffc5216bd2cc | 4 | #include "blecommon.h" |
| ktownsend | 2:ffc5216bd2cc | 5 | #include "uuid.h" |
| ktownsend | 2:ffc5216bd2cc | 6 | |
| ktownsend | 2:ffc5216bd2cc | 7 | class GattCharacteristic |
| ktownsend | 2:ffc5216bd2cc | 8 | { |
| ktownsend | 2:ffc5216bd2cc | 9 | private: |
| ktownsend | 2:ffc5216bd2cc | 10 | |
| ktownsend | 2:ffc5216bd2cc | 11 | public: |
| ktownsend | 23:f19c60478e1b | 12 | GattCharacteristic(uint16_t uuid=0, uint16_t minLen=1, uint16_t maxLen=1, uint8_t properties=0); |
| ktownsend | 2:ffc5216bd2cc | 13 | virtual ~GattCharacteristic(void); |
| ktownsend | 2:ffc5216bd2cc | 14 | |
| ktownsend | 2:ffc5216bd2cc | 15 | uint16_t uuid; /* Characteristic UUID */ |
| ktownsend | 2:ffc5216bd2cc | 16 | uint16_t lenMin; /* Minimum length of the value */ |
| ktownsend | 2:ffc5216bd2cc | 17 | uint16_t lenMax; /* Maximum length of the value */ |
| ktownsend | 11:200931be5617 | 18 | uint8_t handle; |
| ktownsend | 4:50a31ff5f974 | 19 | uint8_t properties; |
| ktownsend | 2:ffc5216bd2cc | 20 | }; |
| ktownsend | 2:ffc5216bd2cc | 21 | |
| ktownsend | 2:ffc5216bd2cc | 22 | #endif |
