crc32

open fun crc32(@NotNull name: @NotNull String, @NotNull callback: @NotNull McuMgrCallback<McuMgrFsCrc32Response>)

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

Parameters

name

the file name.

callback

the asynchronous callback.


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

Parameters

name

the file name.

offset

offset to start checksum calculation at.

length

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

callback

the asynchronous callback.


open fun crc32(@NotNull name: @NotNull String): McuMgrFsStatusResponse

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

Parameters

name

the file name.


open fun crc32(@NotNull name: @NotNull String, offset: Int, length: Int): McuMgrFsStatusResponse

Command allows to generate a checksum 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 checksum with (optional, full file size if set to 0).