config changes
Fork of nRF51822 by
Revision 436:c212548b96ff, committed 2015-09-25
- Comitter:
- rgrover1
- Date:
- Fri Sep 25 15:26:58 2015 +0100
- Parent:
- 435:e351a16db43d
- Child:
- 437:ed7c7f31ac37
- Commit message:
- Synchronized with git rev 6a5d142f
Author: Rohit Grover
initialize the member authorizationReply when posting authorization callbacks to the application.
This is a nice-to-do.
Changed in this revision
source/nRF5xGattServer.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/source/nRF5xGattServer.cpp Fri Sep 25 15:26:58 2015 +0100 +++ b/source/nRF5xGattServer.cpp Fri Sep 25 15:26:58 2015 +0100 @@ -392,6 +392,9 @@ .offset = gattsEventP->params.authorize_request.request.write.offset, .len = gattsEventP->params.authorize_request.request.write.len, .data = gattsEventP->params.authorize_request.request.write.data, + .authorizationReply = AUTH_CALLBACK_REPLY_SUCCESS /* the callback handler must leave this member + * set to AUTH_CALLBACK_REPLY_SUCCESS if the client + * request is to proceed. */ }; ble_gatts_rw_authorize_reply_params_t reply = { .type = BLE_GATTS_AUTHORIZE_TYPE_WRITE, @@ -425,11 +428,14 @@ } case GattServerEvents::GATT_EVENT_READ_AUTHORIZATION_REQ: { GattReadAuthCallbackParams cbParams = { - .connHandle = gattsEventP->conn_handle, - .handle = handle_value, - .offset = gattsEventP->params.authorize_request.request.read.offset, - .len = 0, - .data = NULL + .connHandle = gattsEventP->conn_handle, + .handle = handle_value, + .offset = gattsEventP->params.authorize_request.request.read.offset, + .len = 0, + .data = NULL, + .authorizationReply = AUTH_CALLBACK_REPLY_SUCCESS /* the callback handler must leave this member + * set to AUTH_CALLBACK_REPLY_SUCCESS if the client + * request is to proceed. */ }; ble_gatts_rw_authorize_reply_params_t reply = {