上传设置(Upload settings)

设置云存储上传的后台服务地址( Set the background service address uploaded by cloud storage )

KHJBaseDevice *dDevice = [[KHJAllBaseManager sharedBaseManager] searchForkey:Uid];
if (bDevice) {
    [bDevice.mDeviceManager setDeviceCloudUrl:@"" returnCallBack:^(BOOL success) {
        if (success) {
            NSLog(@"报警云存储地址成功");
            NSLog(@"alarm cloud storage address succeeded"); 
        }
        else {
            NSLog(@"报警云存储地址失败");
            NSLog(@"Alarm cloud storage address failed"); 
        }
    }];
}

查询云存储上传的后台服务地址( Query the background service address uploaded by cloud storage )

KHJBaseDevice *dDevice = [[KHJAllBaseManager sharedBaseManager] searchForkey:Uid];
if (bDevice) {
    [bDevice.mDeviceManager getDeviceCloudUrl:^(NSString *cloudUrl) {
        NSLog(@"cloudUrl = %@",cloudUrl);
    }];
}

设置摄像头上传云存储成功后,上报服务器接口地址

KHJBaseDevice *dDevice = [[KHJAllBaseManager sharedBaseManager] searchForkey:Uid];
if (bDevice) {
    [bDevice.mDeviceManager setDeviceCloudUploadUrl:@"" returnCallBack:^(BOOL success) {
        if (success) {
            NSLog(@"上报成功");
            NSLog(@"Reported successfully"); 
        }
        else {
            NSLog(@"上报失败");
            NSLog(@"Report failed"); 
        }
    }];
}

查询摄像头上报云存储对象接口地址

KHJBaseDevice *dDevice = [[KHJAllBaseManager sharedBaseManager] searchForkey:Uid];
if (bDevice) {
    [bDevice.mDeviceManager getDeviceCloudUploadUrl:^(NSString *uploadCLoudUrl) {
        NSLog(@"uploadCLoudUrl = %@",uploadCLoudUrl);
    }];
}

获取云存储上传开关状态

KHJBaseDevice *dDevice = [[KHJAllBaseManager sharedBaseManager] searchForkey:Uid];
if (bDevice) {
    [bDevice.mDeviceManager getCloundStorage:^(BOOL isOpen, int cloundType, NSString *uidString) {
        // isOpen 是否开通云存储(Activate cloud storage)
        // cloudType 云服务类型(1全天录像,0报警录制)(Cloud service type (1 all day recording, 0 alarm recording))
        // uidString 设备id(Device ID)
    }];
}

设置云存储上传开关状态

KHJBaseDevice *dDevice = [[KHJAllBaseManager sharedBaseManager] searchForkey:Uid];
if (bDevice) {
    // type - 云服务类型(1全天录像,0报警录制)
    // type - cloud service type (1 all day recording, 0 alarm recording) 
    [bDevice.mDeviceManager setCloundStorage:YES andType:type returnBlock:^(BOOL success) {
        if (success) {
            NSLog(@"设置成功");
            NSLog(@"Set successfully"); 
        }
        else {
            NSLog(@"设置失败");
            NSLog(@"Set failed"); 
        }
    }];
}