Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# CLOUD_UPGRADE_INFO

### Structure Definition

C++C#

    1
    2
    3
    4
    5
    6
    7
    8
    struct CLOUD_UPGRADE_INFO
    {
        int chlid;
        char state[32];
        int progress;
        char version[128];
        char newVersionGUID[128];
    };

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    [StructLayout(LayoutKind.Sequential, Pack = 4)]
    public struct CLOUD_UPGRADE_INFO
    {
        public int chlid;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 32)]
        public byte[] state;
        public int progress;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 128)]
        public byte[] version;
        [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 128)]
        public byte[] newVersionGUID;
    }

### Function Description

NVR cloud upgrade information

### Member Description

Member | Type | Remark
--- | --- | ---
chlid | int | Channel ID, -1 means NVR, other channels representing NVR
state | char[32] | Cloud Upgrade Status
progress | int | The current progress will only be available during downloading and forwarding.
version | char[128] | Current version number
newVersionGUID | char[128] | Upgrade version ID This node is only available when there is a notification to the new version

Error Code