Service: Firmware
This API is officially released and maintained. |
The firmware service offers methods to fetch the currently installed firmware, upgrade it, downgrade it and also configure auto-update mechanisms.
Method | Request | Response |
---|---|---|
FirmwareUploadRequestStream |
||
FirmwareInstallResponseStream |
||
Upload
Upload the firmware bundle from the client to the device. Fails if the uploaded firmware bundle is not valid.
Request Stream
This request is sent multiple times to upload a full complete bundle. End the stream with the last chunk of the bundle.
Field | Type | Default | Unit |
---|---|---|---|
binary_chunk |
bytes |
- |
- |
Binary chunk of firmware bundle. The chunk size should not exceed 1 MB. For a firmware bundle with a size of 500 MB, at least 500 chunks / messages are required. |
Install
Trigger the installation process of an uploaded firmware. A status stream with the installation progress is returned and ends with installation completion.
Request
This request contains some optional configuration parameters for the install step.
Field | Type | Default | Unit |
---|
UploadAndInstall
Combines the Upload and Install steps in a single method.
Request Stream
Please refer to FirmwareUploadRequest.
Field | Type | Default | Unit |
---|---|---|---|
binary_chunk |
bytes |
- |
- |
Please refer to FirmwareUploadRequest. |
Response Stream
Please refer to FirmwareInstallResponse.
Field | Type | Default | Unit |
---|---|---|---|
status |
- |
- |
|
Please refer to FirmwareInstallResponse. |
GetStatus
Get the current firmware status which includes the currently installed firmware but also ongoing or failed installations.
WatchStatus
Continously watch the status stream and get updates on changes. This can be used to attach to an ongoing installation.