POST api/device/getfirmware
Get firmware
Request Information
URI Parameters
None.
Body Parameters
Firmware request
FirmwareRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Code |
Requested firmware code |
string |
None. |
| PacketNo |
Requested firmware packet number |
integer |
None. |
| PacketLen |
Requested firmware packet length |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Code": "sample string 1",
"PacketNo": 2,
"PacketLen": 3
}
application/xml, text/xml
Sample:
<FirmwareRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Deufol.CPCNL.API.Classes"> <Code>sample string 1</Code> <PacketLen>3</PacketLen> <PacketNo>2</PacketNo> </FirmwareRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Firmware Response
FirmwareResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| PacketNo |
Current packet number |
integer |
None. |
| MaxPacketNo |
Max. packet number |
integer |
None. |
| FileSize |
File Size in Bytes |
integer |
None. |
| MD5Hash |
File MD5 Hash |
string |
None. |
| Data |
Base64 encoded data |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"PacketNo": 1,
"MaxPacketNo": 2,
"FileSize": 3,
"MD5Hash": "sample string 4",
"Data": "sample string 5"
}
application/xml, text/xml
Sample:
<FirmwareResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Deufol.CPCNL.API.Classes"> <Data>sample string 5</Data> <FileSize>3</FileSize> <MD5Hash>sample string 4</MD5Hash> <MaxPacketNo>2</MaxPacketNo> <PacketNo>1</PacketNo> </FirmwareResponse>