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
Revision 1138:6aabbb5f81e6, committed 2016-04-06
- Comitter:
- LancasterUniversity
- Date:
- Wed Apr 06 18:40:37 2016 +0100
- Parent:
- 1137:290d499dd0e8
- Child:
- 1139:9af191d14c05
- Commit message:
- Synchronized with git rev 33067370
Author: Joe Finney
microbit: Added support for explicit notification
Introduce abality to explicitly perform a notify/indicate opertion on a characteristic.
This brings benefits of a reduce RAM footprint for storing GattCharacterisitics.
n.b. temporary measure until ARM mbed integrate more generic optimisations.
Changed in this revision
| ble/GattServer.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ble/GattServer.h Wed Apr 06 18:40:33 2016 +0100
+++ b/ble/GattServer.h Wed Apr 06 18:40:37 2016 +0100
@@ -187,6 +187,27 @@
}
/**
+ * Perform an explicit BLE notification of a given attribute.
+ *
+ * @param[in] attributeHandle
+ * Handle for the value attribute of the Characteristic.
+ * @param[in] value
+ * A pointer to a buffer holding the new value
+ * @param[in] size
+ * Size of the new value (in bytes).
+ *
+ * @return BLE_ERROR_NONE if we have successfully set the value of the attribute.
+ */
+ virtual ble_error_t notify(GattAttribute::Handle_t attributeHandle, const uint8_t *value, uint16_t size)
+ {
+ (void)attributeHandle;
+ (void)value;
+ (void)size;
+
+ return BLE_ERROR_NOT_IMPLEMENTED; /* Requesting action from porter(s): override this API if this capability is supported. */
+ }
+
+ /**
* Determine the updates-enabled status (notification or indication) for the current connection from a characteristic's CCCD.
*
* @param characteristic
