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.

# NET_SDK_GetUpgradeState

### Interface Definition

C++C#

    1
    2
    int NET_SDK_GetUpgradeState(
        POINTERHANDLE lUpgradeHandle);

    1
    2
    public static extern int NET_SDK_GetUpgradeState(
        POINTERHANDLE lUpgradeHandle);

### Function Description

Get the status of the remote upgrade.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUpgradeHandlein | POINTERHANDLE | Upgrade handle, the return value of `NET_SDK_Upgrade`, `NET_SDK_UpgradeEx`, or `NET_SDK_UpgradeIPC`.

### Return Value

- Type：int

- Remark：-1 indicates failure. The SDK cannot communicate with the device during the device upgrade. Other values ​​indicate the status. For details, refer to `NET_SDK_ERROR`.

### Remarks

None

Error Code