Get Upgrade Firmware Info


The Get Upgrade Firmware Info node gets the upgrade information of the device firmware.

Node Type

EnOS.

Input and Output Ability

This node has multiple entry points and 2 exit points (success/failure).

Node Properties

../../../_images/get_upgrade_firmware_info.png


Name

The name for this node.


Description

The description for this node.

Samples

Input Sample

{
    "MetaData": {
        "messageType": "OtaGetVersion",
        "assetId": "assetId",
        "deviceKey": "deviceKey",
        "productKey": "productKey",
        "orgId": "yourorgId",
        "ts": "1660640666778"
    },
    "Body": {}
}

Output Sample

  • The values of componentResult indicates whether the message is obtained successsfully.

    • Success: The whole message is obtained successfully.

    • Failure: Failed to obtain part of or the whole message.

  • The updated firmware version information will be displayed in ComponentReply[Get-FirmwareVersion] in the Body.


{
    "MetaData": {
        "messageType": "OtaGetVersion",
        "assetId": "assetId",
        "deviceKey": "deviceKey",
        "productKey": "productKey",
        "orgId": "yourordId",
        "componentResult": "Success",
        "ts": "1660640666778"
    },
    "Body": {
        "ComponentReply[Get-FirmwareVersion]": [
            {
                "sign": "signatureoftheFirmware",
                "fileUrl": "enos-connect://fileurl.gz",
                "version": "1",
                "fileSize": 93,
                "signMethod": "MD5"
            }
        ]
    }
}