uploadChunk

suspend fun uploadChunk(name: String, data: ByteArray, offset: Int): McuMgrFsUploadResponse

Sends a single packet of a file, starting from the given offset.

The size of the packet is limited by the MTU. Use upload to send a whole file.

Parameters

name

The path of the file.

data

The data of the file.

offset

The offset, from which the packet is sent.