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: GattService.h
- Revision:
- 29:011e95ce78b8
- Parent:
- 27:4a83843f04b0
- Child:
- 31:2c94f0501807
diff -r f6022fb90701 -r 011e95ce78b8 GattService.h
--- a/GattService.h Thu Jan 09 16:41:15 2014 +0000
+++ b/GattService.h Thu Jan 16 22:29:53 2014 +0000
@@ -24,21 +24,26 @@
#define BLE_SERVICE_MAX_CHARACTERISTICS (5)
+/**************************************************************************/
+/*!
+ \brief GATT service
+*/
+/**************************************************************************/
class GattService
{
-private:
-
-public:
- GattService(uint8_t[16]); /* 128-bit Base UUID */
- GattService(uint16_t); /* 16-bit BLE UUID */
- virtual ~GattService(void);
-
- UUID primaryServiceID;
- uint8_t characteristicCount;
- GattCharacteristic characteristics[BLE_SERVICE_MAX_CHARACTERISTICS];
- uint8_t handle;
-
- ble_error_t addCharacteristic(GattCharacteristic &);
+ private:
+
+ public:
+ GattService(uint8_t[16]); /* 128-bit Base UUID */
+ GattService(uint16_t); /* 16-bit BLE UUID */
+ virtual ~GattService(void);
+
+ UUID primaryServiceID;
+ uint8_t characteristicCount;
+ GattCharacteristic characteristics[BLE_SERVICE_MAX_CHARACTERISTICS];
+ uint8_t handle;
+
+ ble_error_t addCharacteristic(GattCharacteristic &);
};
#endif
