GattServer:: mark a few helper methods as protected.
parent
66c133502e
commit
90f241a5cb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue