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.
Fork of nRF51822 by
Diff: nRF51GattClient.h
- Revision:
- 346:14b090482fd2
- Parent:
- 345:dfde56236c36
- Child:
- 347:b5d18c33fd8a
diff -r dfde56236c36 -r 14b090482fd2 nRF51GattClient.h
--- a/nRF51GattClient.h Fri Jun 19 15:55:35 2015 +0100
+++ b/nRF51GattClient.h Fri Jun 19 15:55:35 2015 +0100
@@ -116,11 +116,14 @@
}
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 = { };
- writeParams.write_op = cmd;
- writeParams.handle = attributeHandle;
- writeParams.len = length;
- writeParams.p_value = const_cast<uint8_t *>(value);
+ ble_gattc_write_params_t writeParams = {
+ .write_op = cmd,
+ // .flags = 0,
+ .handle = attributeHandle,
+ .offset = 0,
+ .len = length,
+ .p_value = const_cast<uint8_t *>(value),
+ };
uint32_t rc = sd_ble_gattc_write(connHandle, &writeParams);
if (rc == NRF_SUCCESS) {
