OpenSDK  V4.2.0
Functions
Device operation API

Functions

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PTZCtrlEx (const char *szSessionId, const char *szDevSerial, const int iChannelNo, PTZCommand enCommand, PTZAction enAction, int iSpeed)
 PTZ control. More...
 
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_DevDefenceEx (const char *szSessionId, const char *szDevSerial, const int iChannelNo, DefenceType enType, DefenceStatus enStatus, DefenceActor enActor)
 Arm or disarm by Camera. More...
 

Detailed Description

Function Documentation

OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_DevDefenceEx ( const char *  szSessionId,
const char *  szDevSerial,
const int  iChannelNo,
DefenceType  enType,
DefenceStatus  enStatus,
DefenceActor  enActor 
)

Arm or disarm by Camera.

Parameters
[in]szSessionIdSession ID
[in]szDevSerialDevice serial No.
[in]iChannelNoDevice channel No.
[in]enTypeArming and disarming type
[in]enStatusArming and Disarming status
[in]enActorDevice type
Returns
Return non-negative on success, -1 on failure
OPENSDK_API OPENSDK_RESULT CALLBACK OpenSDK_PTZCtrlEx ( const char *  szSessionId,
const char *  szDevSerial,
const int  iChannelNo,
PTZCommand  enCommand,
PTZAction  enAction,
int  iSpeed 
)

PTZ control.

Parameters
[in]szSessionIdSession ID
[in]szDevSerialDevice serial No.
[in]iChannelNoDevice channel No.
[in]enCommandPTZ control command, refers to PTZCommand
[in]enActionPTZ operation command, refers to PTZAction
[in]iSpeedSpeed, ranging from 0 to 7
Returns
Return 0 on success, -1 on failure