just a fork

Fork of BLE_API by Bluetooth Low Energy

Revision:
1201:6dd8b141406e
Parent:
1183:1589830dbdb7
--- a/ble/DiscoveredCharacteristic.h	Wed Apr 06 19:16:08 2016 +0100
+++ b/ble/DiscoveredCharacteristic.h	Fri Jul 08 23:39:31 2016 +0000
@@ -260,6 +260,20 @@
      *         BLE_ERROR_OPERATION_NOT_PERMITTED due to the characteristic's properties.
      */
     ble_error_t write(uint16_t length, const uint8_t *value, const GattClient::WriteCallback_t& onWrite) const;
+ 
+  /**
+     * Request Server to send notify/inform messages for the characteristic
+     *
+     * @param  type
+     *           BLE_HVX_NOTIFICATION or BLE_HVX_INDICATION.
+     *
+     * @retval BLE_ERROR_NONE Successfully requested notification/informa messages
+     *         BLE_ERROR_INVALID_STATE if some internal state about the connection is invalid, or
+     *         BLE_STACK_BUSY if some client procedure already in progress, or
+     *         BLE_ERROR_NO_MEM if there are no available buffers left to process the request, or
+     *         BLE_ERROR_OPERATION_NOT_PERMITTED due to the characteristic's properties.
+     */
+    ble_error_t requestHVX(HVXType_t type) const;
 
     void setupLongUUID(UUID::LongUUIDBytes_t longUUID, UUID::ByteOrder_t order = UUID::MSB) {
         uuid.setupLong(longUUID, order);