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.
Dependencies: BLE_API mbed-dev nRF51822
Diff: HIDServiceBase.h
- Revision:
- 79:0095bfb18c57
- Parent:
- 75:351d7ffe81d1
- Child:
- 82:af52d37b1946
--- a/HIDServiceBase.h Fri Sep 02 23:19:19 2016 +0900
+++ b/HIDServiceBase.h Sat Sep 03 20:36:40 2016 +0900
@@ -112,7 +112,9 @@
return connected;
}
+ virtual void init(void);
protected:
+
/**
* Called by BLE API when data has been successfully sent.
*
@@ -123,6 +125,10 @@
*/
virtual void onDataSent(unsigned count);
+ /**
+ */
+ virtual void onDataWritten(const GattWriteCallbackParams *params);
+
/**
* Start the ticker that sends input reports at regular interval
*
@@ -142,6 +148,8 @@
*/
virtual void sendCallback(void) = 0;
+ virtual void addExtraCharacteristics(GattCharacteristic** characteristics, uint8_t& charIndex);
+
protected:
BLE &ble;
bool connected;