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/GattCharacteristic.h
- Revision:
- 265:a0504765a357
- Parent:
- 264:eea11cfb6753
- Child:
- 277:1407d2f1ce3c
--- a/public/GattCharacteristic.h Wed Jan 21 09:32:50 2015 +0000
+++ b/public/GattCharacteristic.h Wed Jan 21 09:32:50 2015 +0000
@@ -383,7 +383,17 @@
/**
* Helper function meant to be called from the guts of the BLE stack to
* determine the authorization reply for a read request.
- * @param params to capture the context of the read-auth request; and also contains an out-parameter for reply.
+ * @param params to capture the context of the read-auth request.
+ *
+ * @NOTE: To authorize/deny the read the params->authorizationReply field
+ * should be set to true/false.
+ *
+ * If the read is approved and params->data is unchanged (NULL),
+ * the current characteristic value will be used.
+ *
+ * If the read is approved, a new value can be provided by setting
+ * the params->data pointer and params->len fields.
+ *
* @return true if the read is authorized to proceed.
*/
bool authorizeRead(GattCharacteristicReadAuthCBParams *params) {
