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_GetProductSubID

### Interface Definition

C++C#

    1
    2
    3
    LONG NET_SDK_GetProductSubID(
        char* sDVRIP,
        WORD wDVRPort);

    1
    2
    3
    public static extern Int32 NET_SDK_GetProductSubID(
        string sDVRIP,
        UInt16 wDVRPort);

### Function Description

Get the device product sub-ID.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
sDVRIPin | char* | The IP address of the device.
wDVRPortin | WORD | The data port of the device.

### Return Value

- Type：LONG

- Remark：-1 indicates failure, and the rest represent the device product sub-ID.

### Remarks

None

Error Code