Skip to main content

Gets firmware file

GET 

https://apis.<domain>/iot/ota/:initId

Downloads firmware binary file for OTA updates

Request

Path Parameters

    initId stringrequired

    Device initialization ID

Responses

Firmware binary file

Schema
    stringstring<binary>

Authorization: http

name: thingAuthtype: httpscheme: bearerdescription: * Things access: `Authorization: Thing <thing_key>`
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://apis.<domain>/iot/ota/:initId");
request.Headers.Add("Accept", "application/octet-stream");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://apis.<domain>
Auth
Parameters
— pathrequired