Skip to content

NET_SDK_UnSmartSubscrib

Interface Definition

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