EZOpenSDK  v4.7.1
 All Classes Functions Properties
Class Methods | List of all members
EZHCNetDeviceSDK Class Reference
Inheritance diagram for EZHCNetDeviceSDK:

Class Methods

(void) + initSDK
 
(BOOL) + startLocalSearch:
 
(BOOL) + stopLocalSearch
 
(void) + research
 
(BOOL) + activeDeviceWithSerial:pwd:
 
(EZHCNetDeviceInfo *) + loginDeviceWithUerName:pwd:ipAddr:port:
 
(BOOL) + logoutDeviceWithUserId:
 
(BOOL) + ptzControlWithUserId:channelNo:command:action:
 
(BOOL) + setEncryptType:
 

Method Documentation

+ (BOOL) activeDeviceWithSerial: (NSString *)  serial
pwd: (NSString *)  pwd 

Activating device, you cannot activate the device when calling stopLocalSearch

Parameters
serialDevice serial No.
pwdActivation password
Returns
Succeeded or failed
+ (void) initSDK

SDK initialization

+ (EZHCNetDeviceInfo*) loginDeviceWithUerName: (NSString *)  userName
pwd: (NSString *)  pwd
ipAddr: (NSString *)  ipAddr
port: (NSInteger)  port 

Device logging in LAN

Parameters
userNameUser name
pwdPassword
ipAddrdevice ip address
portdevice port
Returns
login failed will return nil
+ (BOOL) logoutDeviceWithUserId: (NSInteger)  userId

Device logging out LAN

Parameters
userIDUser ID
Returns
Succeeded or failed
+ (BOOL) ptzControlWithUserId: (NSInteger)  userId
channelNo: (NSInteger)  channelNo
command: (EZPTZCommandType)  command
action: (EZPTZActionType)  action 

PTZ control API of LAN device

Parameters
userIdUser ID
channelNoChannel No.
commandCommand type EZPTZCommandType
actionAction type EZPTZActionType
Returns
Succeeded or failed
+ (void) research

Result is clear and research, on the condition that the search is enabled

+ (BOOL) setEncryptType: (EZEncryptType)  encryptType

Configuring encryption method

Parameters
encryptTypeEncryption method
Returns
Succeeded or failed
+ (BOOL) startLocalSearch: (void(^)(EZSADPDeviceInfo *device, NSError *error))  searchCallback

Start searching LAN device

Parameters
searchCallbackSearch result callback, used for searching device, device information:EZSADPDeviceInfo
Returns
Succeeded or failed
+ (BOOL) stopLocalSearch

Stop searching

Returns
Succeeded or failed

The documentation for this class was generated from the following file: