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_UnSmartSubscrib

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    BOOL NET_SDK_UnSmartSubscrib(
        LONG lUserID,
        DWORD dwCommand,
        LONG lChannel,
        char* pInServerAddress,
        int* dwResult);

    1
    2
    3
    4
    5
    6
    public static extern bool NET_SDK_UnSmartSubscrib(
        int lUserID,
        int dwCommand,
        int lChannel,
        IntPtr pInServerAddress,
        ref int dwResult);

### Function Description

Unsubscribe from smart events (only supported for IPC).

### 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.
pInServerAddressin | char* | The service address returned when subscribing.
dwResultout | int* | The device returns information when you send a cancel subscription message to the device.

### Return Value

- Type：BOOL

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

### Remarks

None

Error Code