Downloading Files¶
The device can send a request to the HTTP broker to download a file after the device has been authenticated.
- Method: GET 
- TOPIC: - /multipart/sys/{productKey}/{deviceKey}/file/download
Request Sample¶
{
    "sesssionId": "341a9fa5-2719-4322-a7e1-686555b9e678",
    "fileUrl": "enos-connect://xxxxx",
    "category": "ota"
}
Returned Data¶
The returned data is the binary stream for the file to be downloaded.
Request Parameter Description¶
| Parameter | Data Type | Mandatory/optional | Description | 
|---|---|---|---|
| sessionId | String | Mandatory | The session ID, obtained when the devices is authenticated and connected to EnOS, must be provided every time the data is reported. | 
| fileUrl | String | Mandatory | The URL for the file to be downloaded. | 
| category | String | Mandatory | The file type. The supported values include: 
 |