Changed URIBeaconConfigService.h to work with ST board
Fork of BLE_API by
Diff: public/DiscoveredCharacteristic.h
- Revision:
- 481:7ab4b9ef92cc
- Parent:
- 477:6883ec08f2dd
- Child:
- 485:313482e1b568
--- a/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:00 2015 +0100 +++ b/public/DiscoveredCharacteristic.h Fri Jun 19 15:52:00 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); }