BLE

Fork of BLE_API by Bluetooth Low Energy

Revision:
1053:b55e1ad3e1b3
Parent:
1051:37101a458dfb
Child:
1054:ec4a5b9b254e
diff -r 62b44b3be31b -r b55e1ad3e1b3 ble/DiscoveredCharacteristic.h
--- a/ble/DiscoveredCharacteristic.h	Mon Jan 11 08:51:30 2016 +0000
+++ b/ble/DiscoveredCharacteristic.h	Mon Jan 11 08:51:31 2016 +0000
@@ -81,6 +81,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.
      *
@@ -133,6 +135,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);
     }