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.
Dependents: microbit-dal microbit-dal microbit-ble-open microbit-dal ... more
Fork of BLE_API by
Diff: public/GattServer.h
- Revision:
- 301:54c87189e423
- Parent:
- 300:d9a39f759a6a
- Child:
- 328:1fd12f67ed7a
diff -r d9a39f759a6a -r 54c87189e423 public/GattServer.h
--- 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;
}
