Lightly modified version of the BLE stack, that doesn't bring up a DFUService by default... as we have our own.
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) {