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.
Dependents: BLE_ANCS_SDAPI BLE_temperature BLE_HeartRate writable_gatt ... more
Diff: nRF51GattClient.h
- Revision:
- 347:b5d18c33fd8a
- Parent:
- 346:14b090482fd2
- Child:
- 360:7c68c8d67e1f
--- a/nRF51GattClient.h Fri Jun 19 15:55:35 2015 +0100
+++ b/nRF51GattClient.h Fri Jun 19 15:55:35 2015 +0100
@@ -116,14 +116,11 @@
}
virtual ble_error_t write(GattClient::WriteOp_t cmd, Gap::Handle_t connHandle, GattAttribute::Handle_t attributeHandle, size_t length, const uint8_t *value) const {
- ble_gattc_write_params_t writeParams = {
- .write_op = cmd,
- // .flags = 0,
- .handle = attributeHandle,
- .offset = 0,
- .len = length,
- .p_value = const_cast<uint8_t *>(value),
- };
+ ble_gattc_write_params_t writeParams = { };
+ writeParams.write_op = cmd;
+ writeParams.handle = attributeHandle;
+ writeParams.len = length;
+ writeParams.p_value = const_cast<uint8_t *>(value);
uint32_t rc = sd_ble_gattc_write(connHandle, &writeParams);
if (rc == NRF_SUCCESS) {

