Download and update
Download an OTA file through the authorized URL and verify it before updating a device.
Query the Desk Clock public beta first. If an OTA file is available, read ota.downloadUrl, ota.size, and ota.sha256 from the response. Send a GET request to ota.downloadUrl and configure the client to follow the HTTP 302 redirect.
Response example
The download endpoint returns HTTP 302 Found with a signed URL on cdn.mindreset.tech in Location. The signature is valid for three minutes. After following the redirect, the HTTP 200 OK response contains the OTA file as binary data.
HTTP/1.1 302 Found
Location: https://cdn.mindreset.tech/path/to/ota?sign=example
Cache-Control: private, no-store
HTTP/1.1 200 OK
Content-Type: application/octet-stream
Content-Length: 1176976
Content-Disposition: attachment; filename*=UTF-8''desk-clock-1.2.0-beta.1.binVerify and troubleshoot
Before installing, confirm the device series, model, and hardware edition. Verify that the downloaded file’s byte count and SHA-256 match ota.size and ota.sha256.
This example expects 1176976 bytes and SHA-256 a4b13eb3a234a0446faeed2e1d07a22f52bf06b40b00e22f219e15211eed6b07. Use the values from your query. For a routine OTA update, install only when needUpdate is true, ota is present, and verification passes.
- If the signed URL expires, request
ota.downloadUrlagain to get a new one. - If the download endpoint returns HTTP
404, check whether the release and organization are still available. Disabled or revoked releases and unavailable organizations stop receiving new signed links. Query the same software ID and channel again, then evaluate whether to update. - If the download endpoint returns HTTP
503, retry later. - For a separate flash package or complete flash image, open the version under My organizations → Field Lab → Software and use the download in Software files.
Did this solve your problem?
Join our community