commit | 1959a5e4cd70fef292a1327d1b1dfb3acb9fe348 | [log] [tgz] |
---|---|---|
author | Alexei Frolov <frolv@google.com> | Wed Jan 17 21:44:02 2024 +0000 |
committer | Alexei Frolov <frolv@google.com> | Wed Jan 17 21:44:02 2024 +0000 |
tree | 60b167f86df43f51b2a5689e35880d8dbf8c97a4 | |
parent | f27a19b15084f417e32eedf8a4a4f3525b1059ef [diff] |
pw_transfer: Use handles for cancellation in C++ client This updates the C++ transfer client to give out handles to started transfers, and uses this handle in the cancellation API. The original method of cancellation, using the legacy transfer_id, is no longer functional following the v2 protocol update as it results in a lookup by session ID, which is different to the resource_id exposed to the user. Bug: 272840682 Change-Id: I46ccd89aae16e8971ea4e1d324085fbe95209104 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/134290 Reviewed-by: Jordan Brauer <jtbrauer@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.