instanceDeviceSetsDelete
+instanceDeviceSetDelete
Remove last device set. The GUI version does not remove the first device.
-
/sdrangel/devicesets
+ /sdrangel/deviceset
Usage and SDK Samples
curl -X DELETE "http://localhost:8091/sdrangel/devicesets"
+ curl -X DELETE "http://localhost:8091/sdrangel/deviceset"
import SWGSDRangel.*;
import SWGSDRangel.auth.*;
import SWGSDRangel.model.*;
@@ -9732,17 +9732,17 @@ public class InstanceApiExample {
InstanceApi apiInstance = new InstanceApi();
try {
- SuccessResponse result = apiInstance.instanceDeviceSetsDelete();
+ SuccessResponse result = apiInstance.instanceDeviceSetDelete();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceDeviceSetsDelete");
+ System.err.println("Exception when calling InstanceApi#instanceDeviceSetDelete");
e.printStackTrace();
}
}
}
import SWGSDRangel.api.InstanceApi;
public class InstanceApiExample {
@@ -9750,24 +9750,24 @@ public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
try {
- SuccessResponse result = apiInstance.instanceDeviceSetsDelete();
+ SuccessResponse result = apiInstance.instanceDeviceSetDelete();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceDeviceSetsDelete");
+ System.err.println("Exception when calling InstanceApi#instanceDeviceSetDelete");
e.printStackTrace();
}
}
}
InstanceApi *apiInstance = [[InstanceApi alloc] init];
-[apiInstance instanceDeviceSetsDeleteWithCompletionHandler:
+[apiInstance instanceDeviceSetDeleteWithCompletionHandler:
^(SuccessResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -9779,7 +9779,7 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
var SdRangel = require('sd_rangel');
var api = new SdRangel.InstanceApi()
@@ -9791,14 +9791,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.instanceDeviceSetsDelete(callback);
+api.instanceDeviceSetDelete(callback);
using System;
using System.Diagnostics;
using SWGSDRangel.Api;
@@ -9807,7 +9807,7 @@ using SWGSDRangel.Model;
namespace Example
{
- public class instanceDeviceSetsDeleteExample
+ public class instanceDeviceSetDeleteExample
{
public void main()
{
@@ -9816,12 +9816,12 @@ namespace Example
try
{
- SuccessResponse result = apiInstance.instanceDeviceSetsDelete();
+ SuccessResponse result = apiInstance.instanceDeviceSetDelete();
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling InstanceApi.instanceDeviceSetsDelete: " + e.Message );
+ Debug.Print("Exception when calling InstanceApi.instanceDeviceSetDelete: " + e.Message );
}
}
}
@@ -9829,22 +9829,22 @@ namespace Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\InstanceApi();
try {
- $result = $api_instance->instanceDeviceSetsDelete();
+ $result = $api_instance->instanceDeviceSetDelete();
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling InstanceApi->instanceDeviceSetsDelete: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling InstanceApi->instanceDeviceSetDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use SWGSDRangel::Configuration;
use SWGSDRangel::InstanceApi;
@@ -9852,15 +9852,15 @@ use SWGSDRangel::InstanceApi;
my $api_instance = SWGSDRangel::InstanceApi->new();
eval {
- my $result = $api_instance->instanceDeviceSetsDelete();
+ my $result = $api_instance->instanceDeviceSetDelete();
print Dumper($result);
};
if ($@) {
- warn "Exception when calling InstanceApi->instanceDeviceSetsDelete: $@\n";
+ warn "Exception when calling InstanceApi->instanceDeviceSetDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_sdrangel
@@ -9871,10 +9871,10 @@ from pprint import pprint
api_instance = swagger_sdrangel.InstanceApi()
try:
- api_response = api_instance.instance_device_sets_delete()
+ api_response = api_instance.instance_device_set_delete()
pprint(api_response)
except ApiException as e:
- print("Exception when calling InstanceApi->instanceDeviceSetsDelete: %s\n" % e)
+ print("Exception when calling InstanceApi->instanceDeviceSetDelete: %s\n" % e)
+
instanceDeviceSetPost
+ +Add (append) a new device set with default values
+ ++
/sdrangel/deviceset
+ +
Usage and SDK Samples
+ + + +curl -X POST "http://localhost:8091/sdrangel/deviceset?tx="
+ import SWGSDRangel.*;
+import SWGSDRangel.auth.*;
+import SWGSDRangel.model.*;
+import SWGSDRangel.api.InstanceApi;
+
+import java.io.File;
+import java.util.*;
+
+public class InstanceApiExample {
+
+ public static void main(String[] args) {
+
+ InstanceApi apiInstance = new InstanceApi();
+ Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
+ try {
+ SuccessResponse result = apiInstance.instanceDeviceSetPost(tx);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling InstanceApi#instanceDeviceSetPost");
+ e.printStackTrace();
+ }
+ }
+}
+ import SWGSDRangel.api.InstanceApi;
+
+public class InstanceApiExample {
+
+ public static void main(String[] args) {
+ InstanceApi apiInstance = new InstanceApi();
+ Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
+ try {
+ SuccessResponse result = apiInstance.instanceDeviceSetPost(tx);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling InstanceApi#instanceDeviceSetPost");
+ e.printStackTrace();
+ }
+ }
+}
+ Integer *tx = 56; // Set to non zero (true) for a Tx device set (default Rx) (optional)
+
+InstanceApi *apiInstance = [[InstanceApi alloc] init];
+
+[apiInstance instanceDeviceSetPostWith:tx
+ completionHandler: ^(SuccessResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+ var SdRangel = require('sd_rangel');
+
+var api = new SdRangel.InstanceApi()
+
+var opts = {
+ 'tx': 56 // {Integer} Set to non zero (true) for a Tx device set (default Rx)
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.instanceDeviceSetPost(opts, callback);
+
+ using System;
+using System.Diagnostics;
+using SWGSDRangel.Api;
+using SWGSDRangel.Client;
+using SWGSDRangel.Model;
+
+namespace Example
+{
+ public class instanceDeviceSetPostExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new InstanceApi();
+ var tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
+
+ try
+ {
+ SuccessResponse result = apiInstance.instanceDeviceSetPost(tx);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling InstanceApi.instanceDeviceSetPost: " + e.Message );
+ }
+ }
+ }
+}
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\Api\InstanceApi();
+$tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
+
+try {
+ $result = $api_instance->instanceDeviceSetPost($tx);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling InstanceApi->instanceDeviceSetPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+ use Data::Dumper;
+use SWGSDRangel::Configuration;
+use SWGSDRangel::InstanceApi;
+
+my $api_instance = SWGSDRangel::InstanceApi->new();
+my $tx = 56; # Integer | Set to non zero (true) for a Tx device set (default Rx)
+
+eval {
+ my $result = $api_instance->instanceDeviceSetPost(tx => $tx);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling InstanceApi->instanceDeviceSetPost: $@\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.InstanceApi()
+tx = 56 # Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
+
+try:
+ api_response = api_instance.instance_device_set_post(tx=tx)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling InstanceApi->instanceDeviceSetPost: %s\n" % e)
+ Parameters
+ + + + + +Name | +Description | +
---|---|
tx | +
+
+
+
+
+
+
+
+
+ Integer
+
+
+
+
+ Set to non zero (true) for a Tx device set (default Rx)
+
+ |
+
Responses
+Status: 202 - Message to add a new device set was sent successfully
+ + + +Status: 500 - Error
+ + + +Status: 501 - Function not implemented
+ + + +-
instanceDeviceSetsPost
- -Add (append) a new device set with default values
- --
/sdrangel/devicesets
- -
Usage and SDK Samples
- - - -curl -X POST "http://localhost:8091/sdrangel/devicesets?tx="
- import SWGSDRangel.*;
-import SWGSDRangel.auth.*;
-import SWGSDRangel.model.*;
-import SWGSDRangel.api.InstanceApi;
-
-import java.io.File;
-import java.util.*;
-
-public class InstanceApiExample {
-
- public static void main(String[] args) {
-
- InstanceApi apiInstance = new InstanceApi();
- Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
- try {
- SuccessResponse result = apiInstance.instanceDeviceSetsPost(tx);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceDeviceSetsPost");
- e.printStackTrace();
- }
- }
-}
- import SWGSDRangel.api.InstanceApi;
-
-public class InstanceApiExample {
-
- public static void main(String[] args) {
- InstanceApi apiInstance = new InstanceApi();
- Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
- try {
- SuccessResponse result = apiInstance.instanceDeviceSetsPost(tx);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceDeviceSetsPost");
- e.printStackTrace();
- }
- }
-}
- Integer *tx = 56; // Set to non zero (true) for a Tx device set (default Rx) (optional)
-
-InstanceApi *apiInstance = [[InstanceApi alloc] init];
-
-[apiInstance instanceDeviceSetsPostWith:tx
- completionHandler: ^(SuccessResponse output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
- if (error) {
- NSLog(@"Error: %@", error);
- }
- }];
-
- var SdRangel = require('sd_rangel');
-
-var api = new SdRangel.InstanceApi()
-
-var opts = {
- 'tx': 56 // {Integer} Set to non zero (true) for a Tx device set (default Rx)
-};
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-api.instanceDeviceSetsPost(opts, callback);
-
- using System;
-using System.Diagnostics;
-using SWGSDRangel.Api;
-using SWGSDRangel.Client;
-using SWGSDRangel.Model;
-
-namespace Example
-{
- public class instanceDeviceSetsPostExample
- {
- public void main()
- {
-
- var apiInstance = new InstanceApi();
- var tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
-
- try
- {
- SuccessResponse result = apiInstance.instanceDeviceSetsPost(tx);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling InstanceApi.instanceDeviceSetsPost: " + e.Message );
- }
- }
- }
-}
-
- <?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\Api\InstanceApi();
-$tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
-
-try {
- $result = $api_instance->instanceDeviceSetsPost($tx);
- print_r($result);
-} catch (Exception $e) {
- echo 'Exception when calling InstanceApi->instanceDeviceSetsPost: ', $e->getMessage(), PHP_EOL;
-}
-?>
- use Data::Dumper;
-use SWGSDRangel::Configuration;
-use SWGSDRangel::InstanceApi;
-
-my $api_instance = SWGSDRangel::InstanceApi->new();
-my $tx = 56; # Integer | Set to non zero (true) for a Tx device set (default Rx)
-
-eval {
- my $result = $api_instance->instanceDeviceSetsPost(tx => $tx);
- print Dumper($result);
-};
-if ($@) {
- warn "Exception when calling InstanceApi->instanceDeviceSetsPost: $@\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.InstanceApi()
-tx = 56 # Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
-
-try:
- api_response = api_instance.instance_device_sets_post(tx=tx)
- pprint(api_response)
-except ApiException as e:
- print("Exception when calling InstanceApi->instanceDeviceSetsPost: %s\n" % e)
- Parameters
- - - - - -Name | -Description | -
---|---|
tx | -
-
-
-
-
-
-
-
-
- Integer
-
-
-
-
- Set to non zero (true) for a Tx device set (default Rx)
-
- |
-
Responses
-Status: 202 - Message to add a new device set was sent successfully
- - - -Status: 500 - Error
- - - -Status: 501 - Function not implemented
- - - --
instanceDeviceSetsDelete
+instanceDeviceSetDelete
Remove last device set. The GUI version does not remove the first device.
-
/sdrangel/devicesets
+ /sdrangel/deviceset
Usage and SDK Samples
curl -X DELETE "http://localhost:8091/sdrangel/devicesets"
+ curl -X DELETE "http://localhost:8091/sdrangel/deviceset"
import SWGSDRangel.*;
import SWGSDRangel.auth.*;
import SWGSDRangel.model.*;
@@ -9732,17 +9732,17 @@ public class InstanceApiExample {
InstanceApi apiInstance = new InstanceApi();
try {
- SuccessResponse result = apiInstance.instanceDeviceSetsDelete();
+ SuccessResponse result = apiInstance.instanceDeviceSetDelete();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceDeviceSetsDelete");
+ System.err.println("Exception when calling InstanceApi#instanceDeviceSetDelete");
e.printStackTrace();
}
}
}
import SWGSDRangel.api.InstanceApi;
public class InstanceApiExample {
@@ -9750,24 +9750,24 @@ public class InstanceApiExample {
public static void main(String[] args) {
InstanceApi apiInstance = new InstanceApi();
try {
- SuccessResponse result = apiInstance.instanceDeviceSetsDelete();
+ SuccessResponse result = apiInstance.instanceDeviceSetDelete();
System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceDeviceSetsDelete");
+ System.err.println("Exception when calling InstanceApi#instanceDeviceSetDelete");
e.printStackTrace();
}
}
}
InstanceApi *apiInstance = [[InstanceApi alloc] init];
-[apiInstance instanceDeviceSetsDeleteWithCompletionHandler:
+[apiInstance instanceDeviceSetDeleteWithCompletionHandler:
^(SuccessResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -9779,7 +9779,7 @@ InstanceApi *apiInstance = [[InstanceApi alloc] init];
var SdRangel = require('sd_rangel');
var api = new SdRangel.InstanceApi()
@@ -9791,14 +9791,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.instanceDeviceSetsDelete(callback);
+api.instanceDeviceSetDelete(callback);
using System;
using System.Diagnostics;
using SWGSDRangel.Api;
@@ -9807,7 +9807,7 @@ using SWGSDRangel.Model;
namespace Example
{
- public class instanceDeviceSetsDeleteExample
+ public class instanceDeviceSetDeleteExample
{
public void main()
{
@@ -9816,12 +9816,12 @@ namespace Example
try
{
- SuccessResponse result = apiInstance.instanceDeviceSetsDelete();
+ SuccessResponse result = apiInstance.instanceDeviceSetDelete();
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling InstanceApi.instanceDeviceSetsDelete: " + e.Message );
+ Debug.Print("Exception when calling InstanceApi.instanceDeviceSetDelete: " + e.Message );
}
}
}
@@ -9829,22 +9829,22 @@ namespace Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\Api\InstanceApi();
try {
- $result = $api_instance->instanceDeviceSetsDelete();
+ $result = $api_instance->instanceDeviceSetDelete();
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling InstanceApi->instanceDeviceSetsDelete: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling InstanceApi->instanceDeviceSetDelete: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use SWGSDRangel::Configuration;
use SWGSDRangel::InstanceApi;
@@ -9852,15 +9852,15 @@ use SWGSDRangel::InstanceApi;
my $api_instance = SWGSDRangel::InstanceApi->new();
eval {
- my $result = $api_instance->instanceDeviceSetsDelete();
+ my $result = $api_instance->instanceDeviceSetDelete();
print Dumper($result);
};
if ($@) {
- warn "Exception when calling InstanceApi->instanceDeviceSetsDelete: $@\n";
+ warn "Exception when calling InstanceApi->instanceDeviceSetDelete: $@\n";
}
from __future__ import print_statement
import time
import swagger_sdrangel
@@ -9871,10 +9871,10 @@ from pprint import pprint
api_instance = swagger_sdrangel.InstanceApi()
try:
- api_response = api_instance.instance_device_sets_delete()
+ api_response = api_instance.instance_device_set_delete()
pprint(api_response)
except ApiException as e:
- print("Exception when calling InstanceApi->instanceDeviceSetsDelete: %s\n" % e)
+ print("Exception when calling InstanceApi->instanceDeviceSetDelete: %s\n" % e)
+
instanceDeviceSetPost
+ +Add (append) a new device set with default values
+ ++
/sdrangel/deviceset
+ +
Usage and SDK Samples
+ + + +curl -X POST "http://localhost:8091/sdrangel/deviceset?tx="
+ import SWGSDRangel.*;
+import SWGSDRangel.auth.*;
+import SWGSDRangel.model.*;
+import SWGSDRangel.api.InstanceApi;
+
+import java.io.File;
+import java.util.*;
+
+public class InstanceApiExample {
+
+ public static void main(String[] args) {
+
+ InstanceApi apiInstance = new InstanceApi();
+ Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
+ try {
+ SuccessResponse result = apiInstance.instanceDeviceSetPost(tx);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling InstanceApi#instanceDeviceSetPost");
+ e.printStackTrace();
+ }
+ }
+}
+ import SWGSDRangel.api.InstanceApi;
+
+public class InstanceApiExample {
+
+ public static void main(String[] args) {
+ InstanceApi apiInstance = new InstanceApi();
+ Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
+ try {
+ SuccessResponse result = apiInstance.instanceDeviceSetPost(tx);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling InstanceApi#instanceDeviceSetPost");
+ e.printStackTrace();
+ }
+ }
+}
+ Integer *tx = 56; // Set to non zero (true) for a Tx device set (default Rx) (optional)
+
+InstanceApi *apiInstance = [[InstanceApi alloc] init];
+
+[apiInstance instanceDeviceSetPostWith:tx
+ completionHandler: ^(SuccessResponse output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+ var SdRangel = require('sd_rangel');
+
+var api = new SdRangel.InstanceApi()
+
+var opts = {
+ 'tx': 56 // {Integer} Set to non zero (true) for a Tx device set (default Rx)
+};
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.instanceDeviceSetPost(opts, callback);
+
+ using System;
+using System.Diagnostics;
+using SWGSDRangel.Api;
+using SWGSDRangel.Client;
+using SWGSDRangel.Model;
+
+namespace Example
+{
+ public class instanceDeviceSetPostExample
+ {
+ public void main()
+ {
+
+ var apiInstance = new InstanceApi();
+ var tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
+
+ try
+ {
+ SuccessResponse result = apiInstance.instanceDeviceSetPost(tx);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling InstanceApi.instanceDeviceSetPost: " + e.Message );
+ }
+ }
+ }
+}
+
+ <?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+$api_instance = new Swagger\Client\Api\InstanceApi();
+$tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
+
+try {
+ $result = $api_instance->instanceDeviceSetPost($tx);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling InstanceApi->instanceDeviceSetPost: ', $e->getMessage(), PHP_EOL;
+}
+?>
+ use Data::Dumper;
+use SWGSDRangel::Configuration;
+use SWGSDRangel::InstanceApi;
+
+my $api_instance = SWGSDRangel::InstanceApi->new();
+my $tx = 56; # Integer | Set to non zero (true) for a Tx device set (default Rx)
+
+eval {
+ my $result = $api_instance->instanceDeviceSetPost(tx => $tx);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling InstanceApi->instanceDeviceSetPost: $@\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.InstanceApi()
+tx = 56 # Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
+
+try:
+ api_response = api_instance.instance_device_set_post(tx=tx)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling InstanceApi->instanceDeviceSetPost: %s\n" % e)
+ Parameters
+ + + + + +Name | +Description | +
---|---|
tx | +
+
+
+
+
+
+
+
+
+ Integer
+
+
+
+
+ Set to non zero (true) for a Tx device set (default Rx)
+
+ |
+
Responses
+Status: 202 - Message to add a new device set was sent successfully
+ + + +Status: 500 - Error
+ + + +Status: 501 - Function not implemented
+ + + +-
instanceDeviceSetsPost
- -Add (append) a new device set with default values
- --
/sdrangel/devicesets
- -
Usage and SDK Samples
- - - -curl -X POST "http://localhost:8091/sdrangel/devicesets?tx="
- import SWGSDRangel.*;
-import SWGSDRangel.auth.*;
-import SWGSDRangel.model.*;
-import SWGSDRangel.api.InstanceApi;
-
-import java.io.File;
-import java.util.*;
-
-public class InstanceApiExample {
-
- public static void main(String[] args) {
-
- InstanceApi apiInstance = new InstanceApi();
- Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
- try {
- SuccessResponse result = apiInstance.instanceDeviceSetsPost(tx);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceDeviceSetsPost");
- e.printStackTrace();
- }
- }
-}
- import SWGSDRangel.api.InstanceApi;
-
-public class InstanceApiExample {
-
- public static void main(String[] args) {
- InstanceApi apiInstance = new InstanceApi();
- Integer tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
- try {
- SuccessResponse result = apiInstance.instanceDeviceSetsPost(tx);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling InstanceApi#instanceDeviceSetsPost");
- e.printStackTrace();
- }
- }
-}
- Integer *tx = 56; // Set to non zero (true) for a Tx device set (default Rx) (optional)
-
-InstanceApi *apiInstance = [[InstanceApi alloc] init];
-
-[apiInstance instanceDeviceSetsPostWith:tx
- completionHandler: ^(SuccessResponse output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
- if (error) {
- NSLog(@"Error: %@", error);
- }
- }];
-
- var SdRangel = require('sd_rangel');
-
-var api = new SdRangel.InstanceApi()
-
-var opts = {
- 'tx': 56 // {Integer} Set to non zero (true) for a Tx device set (default Rx)
-};
-
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-api.instanceDeviceSetsPost(opts, callback);
-
- using System;
-using System.Diagnostics;
-using SWGSDRangel.Api;
-using SWGSDRangel.Client;
-using SWGSDRangel.Model;
-
-namespace Example
-{
- public class instanceDeviceSetsPostExample
- {
- public void main()
- {
-
- var apiInstance = new InstanceApi();
- var tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
-
- try
- {
- SuccessResponse result = apiInstance.instanceDeviceSetsPost(tx);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling InstanceApi.instanceDeviceSetsPost: " + e.Message );
- }
- }
- }
-}
-
- <?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-$api_instance = new Swagger\Client\Api\InstanceApi();
-$tx = 56; // Integer | Set to non zero (true) for a Tx device set (default Rx)
-
-try {
- $result = $api_instance->instanceDeviceSetsPost($tx);
- print_r($result);
-} catch (Exception $e) {
- echo 'Exception when calling InstanceApi->instanceDeviceSetsPost: ', $e->getMessage(), PHP_EOL;
-}
-?>
- use Data::Dumper;
-use SWGSDRangel::Configuration;
-use SWGSDRangel::InstanceApi;
-
-my $api_instance = SWGSDRangel::InstanceApi->new();
-my $tx = 56; # Integer | Set to non zero (true) for a Tx device set (default Rx)
-
-eval {
- my $result = $api_instance->instanceDeviceSetsPost(tx => $tx);
- print Dumper($result);
-};
-if ($@) {
- warn "Exception when calling InstanceApi->instanceDeviceSetsPost: $@\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.InstanceApi()
-tx = 56 # Integer | Set to non zero (true) for a Tx device set (default Rx) (optional)
-
-try:
- api_response = api_instance.instance_device_sets_post(tx=tx)
- pprint(api_response)
-except ApiException as e:
- print("Exception when calling InstanceApi->instanceDeviceSetsPost: %s\n" % e)
- Parameters
- - - - - -Name | -Description | -
---|---|
tx | -
-
-
-
-
-
-
-
-
- Integer
-
-
-
-
- Set to non zero (true) for a Tx device set (default Rx)
-
- |
-