ResourceUploader
open class ResourceUploader(suitManager: SUITManager, sessionId: Int, data: ByteArray, windowCapacity: Int = 1, memoryAlignment: Int = 1) : Uploader
This uploader is using a SUITManager to upload the resource requested by the device during device firmware update.
After sending a SUIT Envelope using EnvelopeUploader, use SUITManager.poll to check if any resource is requested.
Parameters
data
The resource data, as bytes.
windowCapacity
Number of buffers available for sending data, defaults to 1. The more buffers are available, the more packets can be sent without awaiting notification with response, thus accelerating upload process.
memoryAlignment
The memory alignment of the device, defaults to 1. Some memory implementations may require bytes to be aligned to a certain value before saving them.
Constructors
Link copied to clipboard
constructor(suitManager: SUITManager, sessionId: Int, data: ByteArray, windowCapacity: Int = 1, memoryAlignment: Int = 1)
Functions
Link copied to clipboard
Uploads the data asynchronously.