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.
Dependencies: nrf51-sdk
Dependents: microbit-dal microbit-ble-open microbit-dal-eddystone microbit-dal-ble-accelerometer-example ... more
Revision 309:ef9e806a7b03, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:55:30 2015 +0100
- Parent:
- 308:482f16f3f7f5
- Child:
- 310:4d7ccb8c2a51
- Commit message:
- Synchronized with git rev 853d4925
Author: Rohit Grover
DiscoveredCharacteristic::read() returns ble_error_t
Changed in this revision
| btle/btle_discovery.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/btle/btle_discovery.h Fri Jun 19 15:55:29 2015 +0100
+++ b/btle/btle_discovery.h Fri Jun 19 15:55:30 2015 +0100
@@ -30,7 +30,7 @@
* than ATT_MTU - 1, this function must be called multiple times with
* appropriate offset to read the complete value.
*/
- virtual void read(uint16_t offset = 0) {
+ virtual ble_error_t read(uint16_t offset = 0) {
/**@brief Initiate or continue a GATT Read (Long) Characteristic or Descriptor procedure.
*
* @details This function initiates or resumes a GATT Read (Long) Characteristic or Descriptor procedure. If the Characteristic or Descriptor
@@ -49,6 +49,7 @@
*/
// sd_ble_gattc_read()
// SVCALL(SD_BLE_GATTC_READ, uint32_t, sd_ble_gattc_read(uint16_t conn_handle, uint16_t handle, uint16_t offset));
+ return BLE_ERROR_NONE;
}
};