uploadCache

open fun uploadCache(partition: Int, data: @NotNull Array<Byte>, offset: Int, @NotNull callback: @NotNull McuMgrCallback<McuMgrUploadResponse>)

Command delivers a part of a raw cache image to the device (asynchronous).

Parameters

partition

the partition id (target id).

data

raw cache data.

offset

the offset, from which the chunk will be sent.

callback

the asynchronous callback.


@NotNull
open fun uploadCache(partition: Int, data: @NotNull Array<Byte>, offset: Int): @NotNull McuMgrUploadResponse

Command delivers a part of a raw cache image to the device (synchronous).

Return

The upload response.

Parameters

partition

the partition id (target id).

data

raw cache data.

offset

the offset, from which the chunk will be sent.