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
Revision 128:685897b70e4b, committed 2014-11-21
- Comitter:
- rgrover1
- Date:
- Fri Nov 21 09:23:22 2014 +0000
- Parent:
- 127:4e106f4a80b7
- Child:
- 129:fca6e5ba7d39
- Commit message:
- Synchronized with git rev 90f241a5
Author: Rohit Grover
GattServer:: mark a few helper methods as protected.
Changed in this revision
| public/GattServer.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/public/GattServer.h Fri Nov 21 09:23:22 2014 +0000
+++ b/public/GattServer.h Fri Nov 21 09:23:22 2014 +0000
@@ -66,6 +66,12 @@
onConfirmationReceived = callback;
}
+protected:
+ GattServer() : serviceCount(0), characteristicCount(0), onDataSent(NULL), onDataWritten(), onUpdatesEnabled(NULL), onUpdatesDisabled(NULL), onConfirmationReceived(NULL) {
+ /* empty */
+ }
+
+protected:
void handleDataWrittenEvent(const GattCharacteristicWriteCBParams *params) {
if (onDataWritten.hasCallbacksAttached()) {
onDataWritten.call(params);
@@ -99,11 +105,6 @@
}
protected:
- GattServer() : serviceCount(0), characteristicCount(0), onDataSent(NULL), onDataWritten(), onUpdatesEnabled(NULL), onUpdatesDisabled(NULL), onConfirmationReceived(NULL) {
- /* empty */
- }
-
-protected:
uint8_t serviceCount;
uint8_t characteristicCount;
uint8_t descriptorCount;
