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: |
(BOOL) | + startAPConfigWifiWithSsid:password:deviceSerial:verifyCode:result: |
(void) | + stopAPConfigWifi |
+ (BOOL) activeDeviceWithSerial: | (NSString *) | serial | |
pwd: | (NSString *) | pwd | |
激活设备,调用stopLocalSearch后将无法激活设备
serial | 设备序列号 |
pwd | 激活密码 |
+ (void) initSDK |
初始化SDK
+ (EZHCNetDeviceInfo*) loginDeviceWithUerName: | (NSString *) | userName | |
pwd: | (NSString *) | pwd | |
ipAddr: | (NSString *) | ipAddr | |
port: | (NSInteger) | port | |
登录局域网设备
userName | 用户名 |
pwd | 用户密码 |
ipAddr | 设备ip地址 |
port | 设备端口号 |
+ (BOOL) logoutDeviceWithUserId: | (NSInteger) | userId |
登出局域网设备
userId | 用户id |
+ (BOOL) ptzControlWithUserId: | (NSInteger) | userId | |
channelNo: | (NSInteger) | channelNo | |
command: | (EZPTZCommandType) | command | |
action: | (EZPTZActionType) | action | |
局域网设备云台控制接口
userId | 用户id |
channelNo | 通道号 |
command | 命令类型 EZPTZCommandType |
action | 动作类型 EZPTZActionType |
+ (void) research |
清楚结果,重新搜索,前提是之前开启过搜索
+ (BOOL) setEncryptType: | (EZEncryptType) | encryptType |
设置加密方式
encryptType | 加密方式 |
+ (BOOL) startAPConfigWifiWithSsid: | (NSString *) | ssid | |
password: | (NSString *) | password | |
deviceSerial: | (NSString *) | deviceSerial | |
verifyCode: | (NSString *) | verifyCode | |
result: | (void(^)(BOOL ret)) | callback | |
AP配网接口
ssid | WiFi的ssid |
password | WiFi的密码 |
deviceSerial | 设备序列号 |
verifyCode | 设备验证码 |
callback | 结果回调 |
+ (BOOL) startLocalSearch: | (void(^)(EZSADPDeviceInfo *device, NSError *error)) | searchCallback |
开始搜索局域网设备
searchCallback | 搜索结果回调,每搜到一个设备都会回调一次,设备信息EZSADPDeviceInfo |
+ (void) stopAPConfigWifi |
停止AP配网
+ (BOOL) stopLocalSearch |
停止搜索