download
open fun download(@NotNull name: @NotNull String, offset: Int, @NotNull callback: @NotNull McuMgrCallback<McuMgrFsDownloadResponse>)
Read a packet of a file with given name from the specified offset from the device (asynchronous).
Use fileDownload to download the whole file asynchronously using one command.
Parameters
name
the file name.
offset
the offset, from which the chunk will be requested.
callback
the asynchronous callback.
See also
@NotNull
Read a packet of a file with given name from the specified offset from the device (synchronous).
Use fileDownload to download the whole file asynchronously using one command.
Return
The upload response.
Parameters
name
the file name.
offset
the offset, from which the chunk will be requested.
See also
open fun download(@NotNull name: @NotNull String, @NotNull callback: @NotNull FsManager.FileDownloadCallback)
Deprecated
Use fileDownload instead.
Begin a file download.
Only one download can occur per FsManager.
Parameters
name
the file name.
callback
the file download callback.