+
+
+
+
+ devicesetFocusPatch
+ +Set focus on device set (GUI only)
+ ++
/sdrangel/deviceset/{deviceSetIndex}/focus
+ +
Usage and SDK Samples
+ + + +
+
+
+
+
+ curl -X PATCH "http://localhost:8091/sdrangel/deviceset/{deviceSetIndex}/focus"
+
+
+
+ import SWGSDRangel.*;
+import SWGSDRangel.auth.*;
+import SWGSDRangel.model.*;
+import SWGSDRangel.api.DeviceSetApi;
+
+import java.io.File;
+import java.util.*;
+
+public class DeviceSetApiExample {
+
+ public static void main(String[] args) {
+
+ DeviceSetApi apiInstance = new DeviceSetApi();
+ Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
+ try {
+ DeviceSet result = apiInstance.devicesetFocusPatch(deviceSetIndex);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DeviceSetApi#devicesetFocusPatch");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ import SWGSDRangel.api.DeviceSetApi;
+
+public class DeviceSetApiExample {
+
+ public static void main(String[] args) {
+ DeviceSetApi apiInstance = new DeviceSetApi();
+ Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
+ try {
+ DeviceSet result = apiInstance.devicesetFocusPatch(deviceSetIndex);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling DeviceSetApi#devicesetFocusPatch");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+ Integer *deviceSetIndex = 56; // Index of device set in the device set list
+
+DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
+
+[apiInstance devicesetFocusPatchWith:deviceSetIndex
+ completionHandler: ^(DeviceSet output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+
+ var SdRangel = require('sd_rangel');
+
+var api = new SdRangel.DeviceSetApi()
+
+var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
+
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.devicesetFocusPatch(deviceSetIndex, callback);
+
+
+
+
+ using System;
+using System.Diagnostics;
+using SWGSDRangel.Api;
+using SWGSDRangel.Client;
+using SWGSDRangel.Model;
+
+namespace Example
+{
+ public class devicesetFocusPatchExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new DeviceSetApi();
+ var deviceSetIndex = 56; // Integer | Index of device set in the device set list
+
+ try
+ {
+ DeviceSet result = apiInstance.devicesetFocusPatch(deviceSetIndex);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling DeviceSetApi.devicesetFocusPatch: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\Api\DeviceSetApi();
+$deviceSetIndex = 56; // Integer | Index of device set in the device set list
+
+try {
+ $result = $api_instance->devicesetFocusPatch($deviceSetIndex);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling DeviceSetApi->devicesetFocusPatch: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+ use Data::Dumper;
+use SWGSDRangel::Configuration;
+use SWGSDRangel::DeviceSetApi;
+
+my $api_instance = SWGSDRangel::DeviceSetApi->new();
+my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
+
+eval {
+ my $result = $api_instance->devicesetFocusPatch(deviceSetIndex => $deviceSetIndex);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling DeviceSetApi->devicesetFocusPatch: $@\n";
+}
+
+
+ from __future__ import print_statement
+import time
+import swagger_sdrangel
+from swagger_sdrangel.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_sdrangel.DeviceSetApi()
+deviceSetIndex = 56 # Integer | Index of device set in the device set list
+
+try:
+ api_response = api_instance.deviceset_focus_patch(deviceSetIndex)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling DeviceSetApi->devicesetFocusPatch: %s\n" % e)
+ Parameters
+ +Path parameters
+ Name | +Description | +
---|---|
deviceSetIndex* | +
+
+
+
+
+
+
+
+
+ Integer
+
+
+
+
+ Index of device set in the device set list
+
+
+ Required
+
+ |
+
Responses
+Status: 200 - On success return details on the device set
+ + + +
+
+
+
+
+
+
+
+
+ Status: 400 - Unsupported (srver instance)
+ + + +
+
+
+
+
+
+
+
+
+ Status: 404 - Invalid index
+ + + +
+
+
+
+
+
+
+
+
+ Status: 500 - Error
+ + + +
+
+
+
+
+
+
+
+
+ Status: 501 - Function not implemented
+ + + +
+
+
+
+
+
+
+
+
+