Closed keeramis closed 1 year ago
Adds support to read the contents of the device over DFU (upload from device to host)
A couple of ways as preferred:
Use the instructions in this particle-cli PR where you will need to link this repo to the particle-cli local https://github.com/particle-iot/particle-cli/pull/674
Implement the readOverDfu function with a usb device in dfu mode Example:
readOverDfu
async readOverDfu() { const device = await usbUtils.getOneUsbDevice({ ui: this.ui }); const buffer = await device.readOverDfu({ altSetting: 1, startAddr: 3106, size: 192 }); return buffer; }
Description
Adds support to read the contents of the device over DFU (upload from device to host)
How to test
A couple of ways as preferred:
Test from Particle-CLI
Use the instructions in this particle-cli PR where you will need to link this repo to the particle-cli local https://github.com/particle-iot/particle-cli/pull/674
Test independently
Implement the
readOverDfu
function with a usb device in dfu mode Example: