JLChen
2021-05-17 a722e767f98042d5ef6259d2dde7854c925e4167
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
//  LCOpenSDK_DeviceInit.h
//  LCOpenSDK
//
//  Created by bzy on 17/7/21.
//  Copyright © 2017年 lechange. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
typedef struct {
    char        mac[64];    //设备Mac地址
    char        ip[64];     //设备在局域网内的ip
    int         port;       //大华私有协议端口
    int         status;     //0:不支持设备初始化  1:支持设备初始化且未初始化   2:支持设备初始化且已初始化
}LCOPENSDK_DEVICE_INIT_INFO;
 
@interface LCOpenSDK_DeviceInit : NSObject
 
/**
 *  搜索设备初始化信息
 *
 *  @param deviceID 设备ID
 *  @param timeOut  超时时间
 *  @param info     搜索到的设备初始化信息
 */
- (void)searchDeviceInitInfo:(NSString*)deviceID timeOut:(int)timeOut
                     success:(void (^)(LCOPENSDK_DEVICE_INIT_INFO info))success;
 
- (int)initDevice:(NSString*)mac password:(NSString*)password;
 
- (int)initDevice:(NSString*)mac password:(NSString*)password ip:(NSString*)ip;
 
- (int)checkPwdValidity:(NSString*)deviceID ip:(NSString*)ip port:(NSInteger)port password:(NSString*)password;
 
@end