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 BLE_API by
Diff: ble/DiscoveredCharacteristic.h
- Revision:
- 976:043b3bd94ee0
- Parent:
- 970:b3e45745026d
- Child:
- 986:5292837107a3
diff -r a60343e2d29a -r 043b3bd94ee0 ble/DiscoveredCharacteristic.h --- a/ble/DiscoveredCharacteristic.h Thu Nov 26 12:52:36 2015 +0000 +++ b/ble/DiscoveredCharacteristic.h Thu Nov 26 12:52:36 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); }