Camera Info

Camera Info

Clicking ‘Camera Info’ button from the main UI scene triggers the clickCameraInfoButton: method of ViewController class. This method calls the class method of OSCInfo class to make HTTP request of /osc/info. The response message is presented as an NSDictionary object in a dialog, as shown below:

 

ios_image010.png

 

 

- (IBAction)clickCameraInfoButton:(id)sender {
    
    NSLog(@"---------Click OSC Info");
    [OSCInfo OSCRequestInfo:^{}
            block_errorHTTP:^(id errMsg) {}
             block_errorOSC:^(id errMsg) {}
              block_finally:^{} 
              block_success:^(NSData *result) {
                  NSDictionary *resultDictionary = 
                    [Utils convertJSONDataToDictionary:result];
                  NSLog(@"result ----- ,%@", resultDictionary);
                  [Utils showDictionaryInAlertWithTarget:resultDictionary 
                    target:self];
              }];
}

Navigation