Nordic stack and drivers for the mbed BLE API
Dependents: idd_hw5_bleFanProto
Fork of nRF51822 by
Diff: nRF51GattServer.cpp
- Revision:
- 31:c3ce6ee5d300
- Parent:
- 30:85305292b44f
- Child:
- 34:48d24b1d2fe6
--- 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;