Skip to content

NET_SDK_SetDeviceManualAlarm

Interface Definition

1
2
3
4
5
6
BOOL NET_SDK_SetDeviceManualAlarm(
    LONG lUserID,
    LONG* pAramChannel,
    LONG* pValue,
    LONG lAramChannelCount,
    BOOL bAlarmOpen);
1
2
3
4
5
6
public static extern bool NET_SDK_SetDeviceManualAlarm(
    Int32 lUserID,
    int[] pAramChannel,
    int[] pValue,
    int lAramChannelCount,
    bool bAlarmOpen);

Function Description

Set up a manual alarm.

Parameter Description

Parameters Type Remark
lUserIDin LONG User ID, the return value of NET_SDK_Login or NET_SDK_LoginEx.
pAramChannelin LONG* Channel list (the number of elements is specified by lAramChannelCount).
pValuein LONG* The manual alarm status corresponding to the channel (1 means the manual alarm is turned on for the current channel, 0 means it is turned off; if all are 0, the alarm is turned off for all channels).
lAramChannelCountin LONG The number of manual alarm channels in pAramChannel (Note: the number of alarm channels in the device channel is obtained from the NET_SDK_DEVICEINFO:: sensorOutputNum field, which is returned through parameters after calling NET_SDK_Login).
bAlarmOpenin BOOL TRUE means turning on the alarm, FALSE means turning off the alarm.

Return Value

  • type:BOOL

  • remark:Returns TRUE if successful, FALSE if failed.

Remarks

None

Error Code