High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Diff: GattService.h
- Revision:
- 29:011e95ce78b8
- Parent:
- 27:4a83843f04b0
- Child:
- 31:2c94f0501807
--- 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