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",
    "fileUri": "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.

fileUri

String

Mandatory

The URI for the file to be downloaded.

category

String

Mandatory

The file type. The supported values include:

  • ota : The file to be downloaded is an OTA file.

  • feature : The file to be downloaded is a measurement point, attribute, or event of the file uploaded by the device.