abc
Fork of BLE_API by
Diff: public/GattServer.h
- Revision:
- 301:54c87189e423
- Parent:
- 300:d9a39f759a6a
- Child:
- 328:1fd12f67ed7a
--- a/public/GattServer.h Mon Mar 02 11:50:48 2015 +0000 +++ b/public/GattServer.h Mon Mar 02 11:50:48 2015 +0000 @@ -69,11 +69,11 @@ * A virtual function to allow underlying stacks to indicate if they support * onDataRead(). It should be overridden to return true as applicable. */ - virtual bool isOnDataReadAvaialble() const { + virtual bool isOnDataReadAvailable() const { return false; } ble_error_t setOnDataRead(void (*callback)(const GattCharacteristicReadCBParams *eventDataP)) { - if (!isOnDataReadAvaialble()) { + if (!isOnDataReadAvailable()) { return BLE_ERROR_NOT_IMPLEMENTED; } @@ -82,7 +82,7 @@ } template <typename T> ble_error_t setOnDataRead(T *objPtr, void (T::*memberPtr)(const GattCharacteristicReadCBParams *context)) { - if (!isOnDataReadAvaialble()) { + if (!isOnDataReadAvailable()) { return BLE_ERROR_NOT_IMPLEMENTED; }