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_SmartSubscrib

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    BOOL NET_SDK_SmartSubscrib(
        LONG lUserID,
        DWORD dwCommand,
        LONG lChannel,
        NET_DVR_SUBSCRIBE_REPLY* pOutBuffer);

    1
    2
    3
    4
    5
    public static extern bool NET_SDK_SmartSubscrib(
        int lUserID,
        int dwCommand,
        int lChannel,
        ref NET_DVR_SUBSCRIBE_REPLY pOutBuffer);

### Function Description

Subscribe to intelligence events.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
dwCommandin | DWORD | For device configuration commands, refer to `NET_SDK_SMART_EVENT_TYPE`.
lChannelin | LONG | Channel number, starting from 0. This parameter is invalid for IPC devices.
pOutBufferout | `NET_DVR_SUBSCRIBE_REPLY`* | Pointer to the buffer for output data.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

None

Error Code