High level Bluetooth Low Energy API and radio abstraction layer
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate BLE_ANCS_SDAPI_IRC ... more
Overview
The BLE_API is a high level abstraction for using Bluetooth Low Energy on multiple platforms. For details and examples using the BLE_API please see the BLE_API Summary Page. Or click on the API Documentation tab above.
Supported Services
Supported services can be found in the BLE_API/services folder.
Diff: ble/DiscoveredCharacteristic.h
- Revision:
- 990:53ac0ac3aa39
- Parent:
- 986:5292837107a3
- Child:
- 992:ca834f7ae8ed
--- a/ble/DiscoveredCharacteristic.h Thu Nov 26 14:51:22 2015 +0000 +++ b/ble/DiscoveredCharacteristic.h Thu Nov 26 14:51:22 2015 +0000 @@ -83,6 +83,8 @@ */ ble_error_t read(uint16_t offset = 0) const; + ble_error_t read(uint16_t offset, const GattClient::ReadCallback_t& onRead) const; + /** * Perform a write without response procedure. * @@ -135,6 +137,11 @@ */ ble_error_t write(uint16_t length, const uint8_t *value) const; + /** + * Same as above but register the callback wich will be called once the data has been written + */ + ble_error_t write(uint16_t length, const uint8_t *value, const GattClient::WriteCallback_t& onRead) const; + void setupLongUUID(UUID::LongUUIDBytes_t longUUID) { uuid.setupLong(longUUID); }