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: Peripheral_1_serial_copy Peripheral_1_serial 151006_1st_Scenario_normal
Fork of nRF51822 by
Diff: source/nRF5xGattClient.h
- Revision:
- 445:a54987ce65e1
- Parent:
- 441:f58f868539b8
- Child:
- 446:8328a7d1eac2
diff -r df9a63600641 -r a54987ce65e1 source/nRF5xGattClient.h
--- a/source/nRF5xGattClient.h Fri Sep 25 15:26:59 2015 +0100
+++ b/source/nRF5xGattClient.h Fri Sep 25 15:26:59 2015 +0100
@@ -29,7 +29,7 @@
* When using S110, all Gatt client features will return
* BLE_ERROR_NOT_IMPLEMENTED
*/
-#if !defined(MCU_NRF51_16K_S110) && !defined(MCU_NRF51_32K_S110)
+#if !defined(MCU_NORDIC_16K_S110) && !defined(MCU_NORDIC_32K_S110)
/**
* Launch service discovery. Once launched, service discovery will remain
@@ -122,11 +122,9 @@
}
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;
+ ble_gattc_write_params_t writeParams = { };
writeParams.write_op = cmd;
- writeParams.flags = 0; /* this is inconsequential */
writeParams.handle = attributeHandle;
- writeParams.offset = 0;
writeParams.len = length;
writeParams.p_value = const_cast<uint8_t *>(value);
