sha256

open fun sha256(@NotNull name: @NotNull String, @NotNull callback: @NotNull McuMgrCallback<McuMgrFsSha256Response>)

Command allows to generate a hash of an existing file at a specified path on a target device (asynchronous).

Parameters

name

the file name.

callback

the asynchronous callback.


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).

Parameters

name

the file name.

offset

offset to start hash calculation at.

length

maximum length of data to read from file to generate hash with (optional, full file size if set to 0).

callback

the asynchronous callback.


open fun sha256(@NotNull name: @NotNull String): McuMgrFsSha256Response

Command allows to generate a hash of an existing file at a specified path on a target device (synchronous).

Parameters

name

the file name.


open fun sha256(@NotNull name: @NotNull String, offset: Int, length: Int): McuMgrFsSha256Response

Command allows to generate a hash of an existing file at a specified path on a target device (synchronous).

Parameters

name

the file name.

offset

offset to start checksum calculation at.

length

maximum length of data to read from file to generate hash with (optional, full file size if set to 0).