FsManager
Types
Link copied to clipboard
File Download Implementation
Link copied to clipboard
interface FileDownloadCallback
Link copied to clipboard
Link copied to clipboard
File Upload Implementation.
Link copied to clipboard
File Upload Implementation.
Link copied to clipboard
interface FileUploadCallback
Link copied to clipboard
Link copied to clipboard
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Cancel an undergoing file transfer.
Link copied to clipboard
Command allows closing any open file handles held by fs_mgmt upload/download requests that might have stalled or be incomplete (synchronous).
Command allows closing any open file handles held by fs_mgmt upload/download requests that might have stalled or be incomplete (asynchronous).
Link copied to clipboard
Continue a paused file transfer.
Link copied to clipboard
Command allows to generate a checksum of an existing file at a specified path on a target device (synchronous).
open fun crc32(@NotNull name: @NotNull String, @NotNull callback: @NotNull McuMgrCallback<McuMgrFsCrc32Response>)
open fun crc32(@NotNull name: @NotNull String, offset: Int, length: Int, @NotNull callback: @NotNull McuMgrCallback<McuMgrFsCrc32Response>)
Command allows to generate a checksum of an existing file at a specified path on a target device (asynchronous).
Link copied to clipboard
@NotNull
Format a Date and a TimeZone into a String which McuManager will accept.
Link copied to clipboard
@NotNull
Read a packet of a file with given name from the specified offset from the device (synchronous).
open fun download(@NotNull name: @NotNull String, @NotNull callback: @NotNull FsManager.FileDownloadCallback)
Begin a file 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).
Link copied to clipboard
@NotNull
@NotNull
Start image upload.
Link copied to clipboard
@NotNull
@NotNull
Start image upload.
Link copied to clipboard
Get the group ID for this manager.
Link copied to clipboard
Get the transporter's scheme.
Link copied to clipboard
Link copied to clipboard
Get the transporter.
Link copied to clipboard
Pause an in progress transfer.
Link copied to clipboard
@NotNull
@NotNull
Send data synchronously using the transporter.
open fun <T : McuMgrResponse?> send(data: @NotNull Array<Byte>, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
open fun <T : McuMgrResponse?> send(data: @NotNull Array<Byte>, timeout: Long, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
Send data asynchronously using the transporter.
@NotNull
@NotNull
@NotNull
@NotNull
Send synchronous Mcu Manager command.
open fun <T : McuMgrResponse?> send(op: Int, commandId: Int, @Nullable payloadMap: @Nullable Map<String, Any>, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
open fun <T : McuMgrResponse?> send(op: Int, commandId: Int, @Nullable payloadMap: @Nullable Map<String, Any>, timeout: Long, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
open fun <T : McuMgrResponse?> send(op: Int, flags: Int, sequenceNum: Int, commandId: Int, @Nullable payloadMap: @Nullable Map<String, Any>, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
open fun <T : McuMgrResponse?> send(op: Int, flags: Int, sequenceNum: Int, commandId: Int, @Nullable payloadMap: @Nullable Map<String, Any>, timeout: Long, @NotNull respType: @NotNull Class<T>, @NotNull callback: @NotNull McuMgrCallback<T>)
Send an asynchronous Mcu Manager command.
Link copied to clipboard
Sets the upload MTU.
Link copied to clipboard
Command allows to generate a hash of an existing file at a specified path on a target device (synchronous).
open fun sha256(@NotNull name: @NotNull String, @NotNull callback: @NotNull McuMgrCallback<McuMgrFsSha256Response>)
open fun sha256(@NotNull name: @NotNull String, offset: Int, length: Int, @NotNull callback: @NotNull McuMgrCallback<McuMgrFsSha256Response>)
Command allows to generate a hash of an existing file at a specified path on a target device (asynchronous).
Link copied to clipboard
@NotNull
Start an download.
Link copied to clipboard
Start an upload.
Link copied to clipboard
Command allows to retrieve status of an existing file from specified path of a target device (synchronous).
open fun status(@NotNull name: @NotNull String, @NotNull callback: @NotNull McuMgrCallback<McuMgrFsStatusResponse>)
Command allows to retrieve status of an existing file from specified path of a target device (asynchronous).
Link copied to clipboard
Parse a date string returned by a McuMgr response.
Link copied to clipboard
@NotNull
@NotNull
Send a packet of given data from the specified offset to the device (synchronous).
open fun upload(@NotNull name: @NotNull String, data: @NotNull Array<Byte>, @NotNull callback: @NotNull FsManager.FileUploadCallback)
Begin a file upload.
open fun upload(@NotNull name: @NotNull String, data: @NotNull Array<Byte>, offset: Int, @NotNull callback: @NotNull McuMgrCallback<McuMgrFsUploadResponse>)
Send a packet of given data from the specified offset to the device (asynchronous).