mediCAL's first BLE project
Fork of nRF51822 by
Diff: nRF51GattServer.h
- Revision:
- 52:120bd37b9d0d
- Parent:
- 34:48d24b1d2fe6
- Child:
- 54:e2294c844c83
- Child:
- 56:a1071b629aa3
--- a/nRF51GattServer.h Wed Jul 23 12:01:30 2014 +0100 +++ b/nRF51GattServer.h Thu Jul 24 15:46:29 2014 +0100 @@ -21,7 +21,7 @@ #include "blecommon.h" #include "ble.h" /* nordic ble */ #include "GattService.h" -#include "hw/GattServer.h" +#include "public/GattServer.h" #define BLE_TOTAL_CHARACTERISTICS 10 @@ -38,6 +38,11 @@ virtual ble_error_t readValue(uint16_t handle, uint8_t buffer[], uint16_t *const lengthP); virtual ble_error_t updateValue(uint16_t, uint8_t[], uint16_t, bool localOnly = false); + virtual ble_error_t setDeviceName(const uint8_t *deviceName); + virtual ble_error_t getDeviceName(uint8_t *deviceName, unsigned *lengthP); + virtual ble_error_t setAppearance(uint16_t appearance); + virtual ble_error_t getAppearance(uint16_t *appearanceP); + /* nRF51 Functions */ void eventCallback(void); void hwCallback(ble_evt_t *p_ble_evt);