uploadChunk

suspend fun uploadChunk(data: ByteArray, offset: Int, image: Int = 0): McuMgrImageUploadResponse

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

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

Parameters

data

The image data.

offset

The offset, from which the packet is sent.

image

The index of the image, 0 for the first core, 1 for the second, etc.