High level Bluetooth Low Energy API and radio abstraction layer
Fork of BLE_API by
Revision 626:f998812a3a94, committed 2015-06-19
- Comitter:
- rgrover1
- Date:
- Fri Jun 19 15:52:56 2015 +0100
- Parent:
- 625:3882ae21df26
- Child:
- 627:29fe252556a6
- Commit message:
- Synchronized with git rev 4ab43fb7
Author: Rohit Grover
introduce DiscoveredCharacteristic::writeWoResponse()
Changed in this revision
public/DiscoveredCharacteristic.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:55 2015 +0100 +++ b/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:56 2015 +0100 @@ -82,6 +82,27 @@ */ virtual ble_error_t read(uint16_t offset = 0) const = 0; + /** + * Perform a write without response procedure. + * + * @param length + * The amount of data being written. + * @param value + * The bytes being written. + * + * @note It is important to note that a write without response will + * <b>consume an application buffer</b>, and will therefore + * generate a onDataSent() callback when the packet has been + * transmitted. The application should ensure that the buffer is + * valid until the callback. + * + * @retval BLE_ERROR_NONE Successfully started the Write procedure, else + * 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. + */ + virtual ble_error_t writeWoResponse(uint16_t length, const uint8_t *value) const = 0; + void setupLongUUID(UUID::LongUUIDBytes_t longUUID) { uuid.setupLong(longUUID); }