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.
Fork of nRF51822 by
Diff: nRF51GattServer.cpp
- Revision:
- 31:c3ce6ee5d300
- Parent:
- 30:85305292b44f
- Child:
- 34:48d24b1d2fe6
diff -r 85305292b44f -r c3ce6ee5d300 nRF51GattServer.cpp --- a/nRF51GattServer.cpp Wed Jun 11 14:52:13 2014 +0100 +++ b/nRF51GattServer.cpp Fri Jun 13 11:21:09 2014 +0100 @@ -112,12 +112,10 @@ @endcode */ /**************************************************************************/ -ble_error_t nRF51GattServer::readValue(uint16_t charHandle, - uint8_t buffer[], - uint16_t len) +ble_error_t nRF51GattServer::readValue(uint16_t charHandle, uint8_t buffer[], uint16_t *const lengthP) { ASSERT( ERROR_NONE == - sd_ble_gatts_value_get(nrfCharacteristicHandles[charHandle].value_handle, 0, &len, buffer), + sd_ble_gatts_value_get(nrfCharacteristicHandles[charHandle].value_handle, 0, lengthP, buffer), BLE_ERROR_PARAM_OUT_OF_RANGE); return BLE_ERROR_NONE;