diff --git a/sdrbase/resources/index.html b/sdrbase/resources/index.html
index 20cad8dbe..5a2b512b3 100644
--- a/sdrbase/resources/index.html
+++ b/sdrbase/resources/index.html
@@ -1015,7 +1015,8 @@ margin-bottom: 20px;
"fileName" : {
"type" : "string"
}
- }
+ },
+ "description" : "FileSource"
};
defs.InstanceChannelsResponse = {
"required" : [ "channelcount" ],
@@ -1129,7 +1130,8 @@ margin-bottom: 20px;
"extClockFreq" : {
"type" : "integer"
}
- }
+ },
+ "description" : "LimeSDR"
};
defs.LimeSdrOutputSettings = {
"properties" : {
@@ -1173,7 +1175,8 @@ margin-bottom: 20px;
"extClockFreq" : {
"type" : "integer"
}
- }
+ },
+ "description" : "LimeSDR"
};
defs.LocationInformation = {
"required" : [ "latitude", "longitude" ],
@@ -1273,7 +1276,8 @@ margin-bottom: 20px;
"title" : {
"type" : "string"
}
- }
+ },
+ "description" : "NFMDemod"
};
defs.NFMModSettings = {
"properties" : {
@@ -1334,7 +1338,8 @@ margin-bottom: 20px;
"cwKeyer" : {
"$ref" : "#/definitions/CWKeyerSettings"
}
- }
+ },
+ "description" : "NFMMod"
};
defs.PresetExport = {
"properties" : {
@@ -1500,7 +1505,8 @@ margin-bottom: 20px;
"type" : "integer",
"format" : "int64"
}
- }
+ },
+ "description" : "RTLSDR"
};
defs.SamplingDevice = {
"required" : [ "bandwidth", "centerFrequency", "hwType", "index", "sequence", "serial", "state", "streamIndex" ],
@@ -3264,8 +3270,9 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelSettings body = ; // ChannelSettings | Channel settings to apply
try {
- ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
@@ -3284,8 +3291,9 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelSettings body = ; // ChannelSettings | Channel settings to apply
try {
- ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
@@ -3301,11 +3309,13 @@ public class DeviceSetApiExample {
Integer *deviceSetIndex = 56; // Index of device set in the device set list
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
+ChannelSettings *body = ; // Channel settings to apply
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
[apiInstance devicesetChannelSettingsPatchWith:deviceSetIndex
channelIndex:channelIndex
+ body:body
completionHandler: ^(ChannelSettings output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -3326,6 +3336,8 @@ var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
+var body = ; // {ChannelSettings} Channel settings to apply
+
var callback = function(error, data, response) {
if (error) {
@@ -3334,7 +3346,7 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, callback);
+api.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body, callback);
@@ -3358,10 +3370,11 @@ namespace Example
var apiInstance = new DeviceSetApi();
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ var body = new ChannelSettings(); // ChannelSettings | Channel settings to apply
try
{
- ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -3381,9 +3394,10 @@ 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
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+$body = ; // ChannelSettings | Channel settings to apply
try {
- $result = $api_instance->devicesetChannelSettingsPatch($deviceSetIndex, $channelIndex);
+ $result = $api_instance->devicesetChannelSettingsPatch($deviceSetIndex, $channelIndex, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: ', $e->getMessage(), PHP_EOL;
@@ -3399,9 +3413,10 @@ use SWGSDRangel::DeviceSetApi;
my $api_instance = SWGSDRangel::DeviceSetApi->new();
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
+my $body = SWGSDRangel::Object::ChannelSettings->new(); # ChannelSettings | Channel settings to apply
eval {
- my $result = $api_instance->devicesetChannelSettingsPatch(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex);
+ my $result = $api_instance->devicesetChannelSettingsPatch(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
print Dumper($result);
};
if ($@) {
@@ -3420,9 +3435,10 @@ from pprint import pprint
api_instance = swagger_sdrangel.DeviceSetApi()
deviceSetIndex = 56 # Integer | Index of device set in the device set list
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
+body = # ChannelSettings | Channel settings to apply
try:
- api_response = api_instance.deviceset_channel_settings_patch(deviceSetIndex, channelIndex)
+ api_response = api_instance.deviceset_channel_settings_patch(deviceSetIndex, channelIndex, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: %s\n" % e)
@@ -3486,6 +3502,48 @@ except ApiException as e:
+ Body parameters
+
+
+ Name |
+ Description |
+
+ body * |
+
+
+
+
+
+ |
+
+
+
@@ -3758,8 +3816,9 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelSettings body = ; // ChannelSettings | Channel settings to apply
try {
- ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
@@ -3778,8 +3837,9 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelSettings body = ; // ChannelSettings | Channel settings to apply
try {
- ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
@@ -3795,11 +3855,13 @@ public class DeviceSetApiExample {
Integer *deviceSetIndex = 56; // Index of device set in the device set list
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
+ChannelSettings *body = ; // Channel settings to apply
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
[apiInstance devicesetChannelSettingsPutWith:deviceSetIndex
channelIndex:channelIndex
+ body:body
completionHandler: ^(ChannelSettings output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -3820,6 +3882,8 @@ var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
+var body = ; // {ChannelSettings} Channel settings to apply
+
var callback = function(error, data, response) {
if (error) {
@@ -3828,7 +3892,7 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, callback);
+api.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body, callback);
@@ -3852,10 +3916,11 @@ namespace Example
var apiInstance = new DeviceSetApi();
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ var body = new ChannelSettings(); // ChannelSettings | Channel settings to apply
try
{
- ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -3875,9 +3940,10 @@ 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
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+$body = ; // ChannelSettings | Channel settings to apply
try {
- $result = $api_instance->devicesetChannelSettingsPut($deviceSetIndex, $channelIndex);
+ $result = $api_instance->devicesetChannelSettingsPut($deviceSetIndex, $channelIndex, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPut: ', $e->getMessage(), PHP_EOL;
@@ -3893,9 +3959,10 @@ use SWGSDRangel::DeviceSetApi;
my $api_instance = SWGSDRangel::DeviceSetApi->new();
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
+my $body = SWGSDRangel::Object::ChannelSettings->new(); # ChannelSettings | Channel settings to apply
eval {
- my $result = $api_instance->devicesetChannelSettingsPut(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex);
+ my $result = $api_instance->devicesetChannelSettingsPut(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
print Dumper($result);
};
if ($@) {
@@ -3914,9 +3981,10 @@ from pprint import pprint
api_instance = swagger_sdrangel.DeviceSetApi()
deviceSetIndex = 56 # Integer | Index of device set in the device set list
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
+body = # ChannelSettings | Channel settings to apply
try:
- api_response = api_instance.deviceset_channel_settings_put(deviceSetIndex, channelIndex)
+ api_response = api_instance.deviceset_channel_settings_put(deviceSetIndex, channelIndex, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPut: %s\n" % e)
@@ -3980,6 +4048,48 @@ except ApiException as e:
+ Body parameters
+
+
+ Name |
+ Description |
+
+ body * |
+
+
+
+
+
+ |
+
+
+
@@ -16199,7 +16309,7 @@ except ApiException as e:
- Generated 2017-12-23T23:39:41.313+01:00
+ Generated 2017-12-28T22:34:28.719+01:00
diff --git a/swagger/sdrangel/api/swagger/swagger.yaml b/swagger/sdrangel/api/swagger/swagger.yaml
index 716950440..293bea9fb 100644
--- a/swagger/sdrangel/api/swagger/swagger.yaml
+++ b/swagger/sdrangel/api/swagger/swagger.yaml
@@ -900,6 +900,12 @@ paths:
type: integer
required: true
description: Index of the channel in the channels list for this device set
+ - name: body
+ in: body
+ description: Channel settings to apply
+ required: true
+ schema:
+ $ref: "#/definitions/ChannelSettings"
responses:
"200":
description: On success return channel new settings
@@ -933,6 +939,12 @@ paths:
type: integer
required: true
description: Index of the channel in the channels list for this device set
+ - name: body
+ in: body
+ description: Channel settings to apply
+ required: true
+ schema:
+ $ref: "#/definitions/ChannelSettings"
responses:
"200":
description: On success return channel new settings
diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html
index 20cad8dbe..5a2b512b3 100644
--- a/swagger/sdrangel/code/html2/index.html
+++ b/swagger/sdrangel/code/html2/index.html
@@ -1015,7 +1015,8 @@ margin-bottom: 20px;
"fileName" : {
"type" : "string"
}
- }
+ },
+ "description" : "FileSource"
};
defs.InstanceChannelsResponse = {
"required" : [ "channelcount" ],
@@ -1129,7 +1130,8 @@ margin-bottom: 20px;
"extClockFreq" : {
"type" : "integer"
}
- }
+ },
+ "description" : "LimeSDR"
};
defs.LimeSdrOutputSettings = {
"properties" : {
@@ -1173,7 +1175,8 @@ margin-bottom: 20px;
"extClockFreq" : {
"type" : "integer"
}
- }
+ },
+ "description" : "LimeSDR"
};
defs.LocationInformation = {
"required" : [ "latitude", "longitude" ],
@@ -1273,7 +1276,8 @@ margin-bottom: 20px;
"title" : {
"type" : "string"
}
- }
+ },
+ "description" : "NFMDemod"
};
defs.NFMModSettings = {
"properties" : {
@@ -1334,7 +1338,8 @@ margin-bottom: 20px;
"cwKeyer" : {
"$ref" : "#/definitions/CWKeyerSettings"
}
- }
+ },
+ "description" : "NFMMod"
};
defs.PresetExport = {
"properties" : {
@@ -1500,7 +1505,8 @@ margin-bottom: 20px;
"type" : "integer",
"format" : "int64"
}
- }
+ },
+ "description" : "RTLSDR"
};
defs.SamplingDevice = {
"required" : [ "bandwidth", "centerFrequency", "hwType", "index", "sequence", "serial", "state", "streamIndex" ],
@@ -3264,8 +3270,9 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelSettings body = ; // ChannelSettings | Channel settings to apply
try {
- ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
@@ -3284,8 +3291,9 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelSettings body = ; // ChannelSettings | Channel settings to apply
try {
- ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPatch");
@@ -3301,11 +3309,13 @@ public class DeviceSetApiExample {
Integer *deviceSetIndex = 56; // Index of device set in the device set list
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
+ChannelSettings *body = ; // Channel settings to apply
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
[apiInstance devicesetChannelSettingsPatchWith:deviceSetIndex
channelIndex:channelIndex
+ body:body
completionHandler: ^(ChannelSettings output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -3326,6 +3336,8 @@ var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
+var body = ; // {ChannelSettings} Channel settings to apply
+
var callback = function(error, data, response) {
if (error) {
@@ -3334,7 +3346,7 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, callback);
+api.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body, callback);
@@ -3358,10 +3370,11 @@ namespace Example
var apiInstance = new DeviceSetApi();
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ var body = new ChannelSettings(); // ChannelSettings | Channel settings to apply
try
{
- ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPatch(deviceSetIndex, channelIndex, body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -3381,9 +3394,10 @@ 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
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+$body = ; // ChannelSettings | Channel settings to apply
try {
- $result = $api_instance->devicesetChannelSettingsPatch($deviceSetIndex, $channelIndex);
+ $result = $api_instance->devicesetChannelSettingsPatch($deviceSetIndex, $channelIndex, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: ', $e->getMessage(), PHP_EOL;
@@ -3399,9 +3413,10 @@ use SWGSDRangel::DeviceSetApi;
my $api_instance = SWGSDRangel::DeviceSetApi->new();
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
+my $body = SWGSDRangel::Object::ChannelSettings->new(); # ChannelSettings | Channel settings to apply
eval {
- my $result = $api_instance->devicesetChannelSettingsPatch(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex);
+ my $result = $api_instance->devicesetChannelSettingsPatch(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
print Dumper($result);
};
if ($@) {
@@ -3420,9 +3435,10 @@ from pprint import pprint
api_instance = swagger_sdrangel.DeviceSetApi()
deviceSetIndex = 56 # Integer | Index of device set in the device set list
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
+body = # ChannelSettings | Channel settings to apply
try:
- api_response = api_instance.deviceset_channel_settings_patch(deviceSetIndex, channelIndex)
+ api_response = api_instance.deviceset_channel_settings_patch(deviceSetIndex, channelIndex, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPatch: %s\n" % e)
@@ -3486,6 +3502,48 @@ except ApiException as e:
+ Body parameters
+
+
+ Name |
+ Description |
+
+ body * |
+
+
+
+
+
+ |
+
+
+
@@ -3758,8 +3816,9 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelSettings body = ; // ChannelSettings | Channel settings to apply
try {
- ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
@@ -3778,8 +3837,9 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Integer channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ ChannelSettings body = ; // ChannelSettings | Channel settings to apply
try {
- ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DeviceSetApi#devicesetChannelSettingsPut");
@@ -3795,11 +3855,13 @@ public class DeviceSetApiExample {
Integer *deviceSetIndex = 56; // Index of device set in the device set list
Integer *channelIndex = 56; // Index of the channel in the channels list for this device set
+ChannelSettings *body = ; // Channel settings to apply
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
[apiInstance devicesetChannelSettingsPutWith:deviceSetIndex
channelIndex:channelIndex
+ body:body
completionHandler: ^(ChannelSettings output, NSError* error) {
if (output) {
NSLog(@"%@", output);
@@ -3820,6 +3882,8 @@ var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
var channelIndex = 56; // {Integer} Index of the channel in the channels list for this device set
+var body = ; // {ChannelSettings} Channel settings to apply
+
var callback = function(error, data, response) {
if (error) {
@@ -3828,7 +3892,7 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, callback);
+api.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body, callback);
@@ -3852,10 +3916,11 @@ namespace Example
var apiInstance = new DeviceSetApi();
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
var channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+ var body = new ChannelSettings(); // ChannelSettings | Channel settings to apply
try
{
- ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex);
+ ChannelSettings result = apiInstance.devicesetChannelSettingsPut(deviceSetIndex, channelIndex, body);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -3875,9 +3940,10 @@ 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
$channelIndex = 56; // Integer | Index of the channel in the channels list for this device set
+$body = ; // ChannelSettings | Channel settings to apply
try {
- $result = $api_instance->devicesetChannelSettingsPut($deviceSetIndex, $channelIndex);
+ $result = $api_instance->devicesetChannelSettingsPut($deviceSetIndex, $channelIndex, $body);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DeviceSetApi->devicesetChannelSettingsPut: ', $e->getMessage(), PHP_EOL;
@@ -3893,9 +3959,10 @@ use SWGSDRangel::DeviceSetApi;
my $api_instance = SWGSDRangel::DeviceSetApi->new();
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
my $channelIndex = 56; # Integer | Index of the channel in the channels list for this device set
+my $body = SWGSDRangel::Object::ChannelSettings->new(); # ChannelSettings | Channel settings to apply
eval {
- my $result = $api_instance->devicesetChannelSettingsPut(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex);
+ my $result = $api_instance->devicesetChannelSettingsPut(deviceSetIndex => $deviceSetIndex, channelIndex => $channelIndex, body => $body);
print Dumper($result);
};
if ($@) {
@@ -3914,9 +3981,10 @@ from pprint import pprint
api_instance = swagger_sdrangel.DeviceSetApi()
deviceSetIndex = 56 # Integer | Index of device set in the device set list
channelIndex = 56 # Integer | Index of the channel in the channels list for this device set
+body = # ChannelSettings | Channel settings to apply
try:
- api_response = api_instance.deviceset_channel_settings_put(deviceSetIndex, channelIndex)
+ api_response = api_instance.deviceset_channel_settings_put(deviceSetIndex, channelIndex, body)
pprint(api_response)
except ApiException as e:
print("Exception when calling DeviceSetApi->devicesetChannelSettingsPut: %s\n" % e)
@@ -3980,6 +4048,48 @@ except ApiException as e:
+ Body parameters
+
+
+ Name |
+ Description |
+
+ body * |
+
+
+
+
+
+ |
+
+
+
@@ -16199,7 +16309,7 @@ except ApiException as e:
- Generated 2017-12-23T23:39:41.313+01:00
+ Generated 2017-12-28T22:34:28.719+01:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp
index e470cc904..8f3d0d44c 100644
--- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp
+++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp
@@ -185,7 +185,7 @@ SWGDeviceSetApi::devicesetChannelSettingsGetCallback(HttpRequestWorker * worker)
}
void
-SWGDeviceSetApi::devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index) {
+SWGDeviceSetApi::devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index, SWGChannelSettings body) {
QString fullPath;
fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings");
@@ -199,7 +199,9 @@ SWGDeviceSetApi::devicesetChannelSettingsPatch(qint32 device_set_index, qint32 c
HttpRequestInput input(fullPath, "PATCH");
-
+ QString output = body.asJson();
+ input.request_body.append(output);
+
foreach(QString key, this->defaultHeaders.keys()) {
@@ -237,7 +239,7 @@ SWGDeviceSetApi::devicesetChannelSettingsPatchCallback(HttpRequestWorker * worke
}
void
-SWGDeviceSetApi::devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index) {
+SWGDeviceSetApi::devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index, SWGChannelSettings body) {
QString fullPath;
fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex}/settings");
@@ -251,7 +253,9 @@ SWGDeviceSetApi::devicesetChannelSettingsPut(qint32 device_set_index, qint32 cha
HttpRequestInput input(fullPath, "PUT");
-
+ QString output = body.asJson();
+ input.request_body.append(output);
+
foreach(QString key, this->defaultHeaders.keys()) {
diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h
index ef5abcdcd..7b661df83 100644
--- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h
+++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h
@@ -42,8 +42,8 @@ public:
void devicesetChannelDelete(qint32 device_set_index, qint32 channel_index);
void devicesetChannelPost(qint32 device_set_index, SWGChannelSettings body);
void devicesetChannelSettingsGet(qint32 device_set_index, qint32 channel_index);
- void devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index);
- void devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index);
+ void devicesetChannelSettingsPatch(qint32 device_set_index, qint32 channel_index, SWGChannelSettings body);
+ void devicesetChannelSettingsPut(qint32 device_set_index, qint32 channel_index, SWGChannelSettings body);
void devicesetDevicePut(qint32 device_set_index, SWGDeviceListItem body);
void devicesetDeviceRunDelete(qint32 device_set_index);
void devicesetDeviceRunGet(qint32 device_set_index);
diff --git a/swagger/sdrangel/code/qt5/client/SWGFileSourceSettings.h b/swagger/sdrangel/code/qt5/client/SWGFileSourceSettings.h
index a8c3534b1..ccaa9bf76 100644
--- a/swagger/sdrangel/code/qt5/client/SWGFileSourceSettings.h
+++ b/swagger/sdrangel/code/qt5/client/SWGFileSourceSettings.h
@@ -13,7 +13,7 @@
/*
* SWGFileSourceSettings.h
*
- *
+ * FileSource
*/
#ifndef SWGFileSourceSettings_H_
diff --git a/swagger/sdrangel/code/qt5/client/SWGLimeSdrInputSettings.h b/swagger/sdrangel/code/qt5/client/SWGLimeSdrInputSettings.h
index 00bb40e12..170355073 100644
--- a/swagger/sdrangel/code/qt5/client/SWGLimeSdrInputSettings.h
+++ b/swagger/sdrangel/code/qt5/client/SWGLimeSdrInputSettings.h
@@ -13,7 +13,7 @@
/*
* SWGLimeSdrInputSettings.h
*
- *
+ * LimeSDR
*/
#ifndef SWGLimeSdrInputSettings_H_
diff --git a/swagger/sdrangel/code/qt5/client/SWGLimeSdrOutputSettings.h b/swagger/sdrangel/code/qt5/client/SWGLimeSdrOutputSettings.h
index 93e2f7d82..a0e7c41b3 100644
--- a/swagger/sdrangel/code/qt5/client/SWGLimeSdrOutputSettings.h
+++ b/swagger/sdrangel/code/qt5/client/SWGLimeSdrOutputSettings.h
@@ -13,7 +13,7 @@
/*
* SWGLimeSdrOutputSettings.h
*
- *
+ * LimeSDR
*/
#ifndef SWGLimeSdrOutputSettings_H_
diff --git a/swagger/sdrangel/code/qt5/client/SWGNFMDemodSettings.h b/swagger/sdrangel/code/qt5/client/SWGNFMDemodSettings.h
index f6e07c5d8..90f8e4d24 100644
--- a/swagger/sdrangel/code/qt5/client/SWGNFMDemodSettings.h
+++ b/swagger/sdrangel/code/qt5/client/SWGNFMDemodSettings.h
@@ -13,7 +13,7 @@
/*
* SWGNFMDemodSettings.h
*
- *
+ * NFMDemod
*/
#ifndef SWGNFMDemodSettings_H_
diff --git a/swagger/sdrangel/code/qt5/client/SWGNFMModSettings.h b/swagger/sdrangel/code/qt5/client/SWGNFMModSettings.h
index 474945d2e..2d58e534c 100644
--- a/swagger/sdrangel/code/qt5/client/SWGNFMModSettings.h
+++ b/swagger/sdrangel/code/qt5/client/SWGNFMModSettings.h
@@ -13,7 +13,7 @@
/*
* SWGNFMModSettings.h
*
- *
+ * NFMMod
*/
#ifndef SWGNFMModSettings_H_
diff --git a/swagger/sdrangel/code/qt5/client/SWGRtlSdrSettings.h b/swagger/sdrangel/code/qt5/client/SWGRtlSdrSettings.h
index 9bbec9153..c7fb9c235 100644
--- a/swagger/sdrangel/code/qt5/client/SWGRtlSdrSettings.h
+++ b/swagger/sdrangel/code/qt5/client/SWGRtlSdrSettings.h
@@ -13,7 +13,7 @@
/*
* SWGRtlSdrSettings.h
*
- *
+ * RTLSDR
*/
#ifndef SWGRtlSdrSettings_H_