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.
Dependencies: BLE_API mbed nRF51822
Diff: TransferService.cpp
- Revision:
- 2:4ca946e0ebdc
- Parent:
- 1:d623a5792ce5
- Child:
- 3:d58f3a5bd66c
--- a/TransferService.cpp Thu Aug 21 14:09:18 2014 +0000
+++ b/TransferService.cpp Fri Aug 29 10:41:56 2014 +0200
@@ -77,7 +77,7 @@
return;
}
- if (handle == transferFileInfo.getHandle()) {
+ if (handle == transferFileInfo.getValueAttribute().getHandle()) {
uint16_t len = sizeof(fileInfo);
ble->readCharacteristicValue(handle, (uint8_t *) &fileInfo, &len);
@@ -102,7 +102,7 @@
} else {
refuseFile();
}
- } else if (handle == transferFileBlock.getHandle()) {
+ } else if (handle == transferFileBlock.getValueAttribute().getHandle()) {
uint16_t len = sizeof(fileBlock);
ble->readCharacteristicValue(handle, (uint8_t *) &fileBlock, &len);
@@ -124,7 +124,7 @@
void sendFileInfo(uint32_t value)
{
// refusal is indicated by sending a fileInfo with all zeros
- ble->updateCharacteristicValue(transferFileInfo.getHandle(), (uint8_t *) &value, sizeof(value), false);
+ ble->updateCharacteristicValue(transferFileInfo.getValueAttribute().getHandle(), (uint8_t *) &value, sizeof(value), false);
}
void refuseFile()