GattServer:: mark a few helper methods as protected.

master
Rohit Grover 2014-11-18 10:18:51 +00:00
parent 66c133502e
commit 90f241a5cb
1 changed files with 6 additions and 5 deletions

View File

@ -66,6 +66,12 @@ public:
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);
@ -98,11 +104,6 @@ public:
}
}
protected:
GattServer() : serviceCount(0), characteristicCount(0), onDataSent(NULL), onDataWritten(), onUpdatesEnabled(NULL), onUpdatesDisabled(NULL), onConfirmationReceived(NULL) {
/* empty */
}
protected:
uint8_t serviceCount;
uint8_t characteristicCount;