设备连接(Device connection)

app调用设备连接方法,将设备联网,从而获取设备参数信息 以及 获取设备的控制权限(The app calls the device connection method and connects the device to the network to obtain device parameter information and control permissions of the device)

KHJDeviceManager *manager = [[KHJDeviceManager alloc] init];
[manager createKHJCameraBase:Uid];

设备连接(Device connection)

[manager connect:"设备密码"
            with:"设备id" 
            flag: 0
 successCallBack:^(NSString *uidStr, NSInteger isSuccess) {

} offLineCallBack:^{}];

isSuccess 参考错误码(isSuccess reference error code)

设备重连(Device reconnect)

设备重连删除设备 时,断开设备连接(When device reconnect and delete device, disconnect the device)

[manager disconnect];