Browse Source

Regenerate swagger

chirpmodem-v8.0.0
srcejon 2 months ago
parent
commit
dddab138e9
  1. 69
      sdrbase/resources/webapi/doc/html2/index.html
  2. 4
      sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml
  3. 9
      sdrbase/resources/webapi/doc/swagger/swagger.yaml
  4. 69
      swagger/sdrangel/code/html2/index.html
  5. 4
      swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp
  6. 4
      swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h
  7. 34
      swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp
  8. 10
      swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h

69
sdrbase/resources/webapi/doc/html2/index.html

@ -10605,11 +10605,11 @@ margin-bottom: 20px; @@ -10605,11 +10605,11 @@ margin-bottom: 20px;
"signalCount" : {
"type" : "integer"
},
"signals" : {
"signalList" : {
"type" : "array",
"description" : "Runs of adjacent bins whose maximum rose above the threshold.",
"items" : {
"$ref" : "#/SpectrumHistorySignal"
"$ref" : "#/definitions/SpectrumHistorySignal"
}
}
},
@ -39077,11 +39077,11 @@ public class DeviceSetApiExample { @@ -39077,11 +39077,11 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Float seconds = 3.4; // Float | How far back to look, in seconds (default 60)
Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
Integer bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
Float threshold = 3.4; // Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
Integer threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
try {
GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
System.out.println(result);
@ -39101,11 +39101,11 @@ public class DeviceSetApiExample { @@ -39101,11 +39101,11 @@ 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
Float seconds = 3.4; // Float | How far back to look, in seconds (default 60)
Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
Integer bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
Float threshold = 3.4; // Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
Integer threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
try {
GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
System.out.println(result);
@ -39122,11 +39122,11 @@ public class DeviceSetApiExample { @@ -39122,11 +39122,11 @@ public class DeviceSetApiExample {
</div> -->
<div class="tab-pane" id="examples-DeviceSet-devicesetSpectrumHistoryGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
Float *seconds = 3.4; // How far back to look, in seconds (default 60) (optional)
Integer *seconds = 56; // How far back to look, in seconds (default 60) (optional)
Integer *bins = 56; // Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
Long *startFrequency = 789; // Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
Long *stopFrequency = 789; // Highest frequency to include in Hz. Default is the end of the spectrum (optional)
Float *threshold = 3.4; // How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
Integer *threshold = 56; // How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
@ -39155,11 +39155,11 @@ var api = new SdRangel.DeviceSetApi() @@ -39155,11 +39155,11 @@ var api = new SdRangel.DeviceSetApi()
var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
var opts = {
'seconds': 3.4, // {Float} How far back to look, in seconds (default 60)
'seconds': 56, // {Integer} How far back to look, in seconds (default 60)
'bins': 56, // {Integer} Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
'startFrequency': 789, // {Long} Lowest frequency to include in Hz. Default is the start of the spectrum
'stopFrequency': 789, // {Long} Highest frequency to include in Hz. Default is the end of the spectrum
'threshold': 3.4 // {Float} How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
'threshold': 56 // {Integer} How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
};
var callback = function(error, data, response) {
@ -39192,11 +39192,11 @@ namespace Example @@ -39192,11 +39192,11 @@ namespace Example
var apiInstance = new DeviceSetApi();
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
var seconds = 3.4; // Float | How far back to look, in seconds (default 60) (optional)
var seconds = 56; // Integer | How far back to look, in seconds (default 60) (optional)
var bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
var startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
var stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
var threshold = 3.4; // Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
var threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
try
{
@ -39219,11 +39219,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); @@ -39219,11 +39219,11 @@ 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
$seconds = 3.4; // Float | How far back to look, in seconds (default 60)
$seconds = 56; // Integer | How far back to look, in seconds (default 60)
$bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
$startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
$stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
$threshold = 3.4; // Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
$threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
try {
$result = $api_instance->devicesetSpectrumHistoryGet($deviceSetIndex, $seconds, $bins, $startFrequency, $stopFrequency, $threshold);
@ -39241,11 +39241,11 @@ use SWGSDRangel::DeviceSetApi; @@ -39241,11 +39241,11 @@ use SWGSDRangel::DeviceSetApi;
my $api_instance = SWGSDRangel::DeviceSetApi->new();
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
my $seconds = 3.4; # Float | How far back to look, in seconds (default 60)
my $seconds = 56; # Integer | How far back to look, in seconds (default 60)
my $bins = 56; # Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
my $startFrequency = 789; # Long | Lowest frequency to include in Hz. Default is the start of the spectrum
my $stopFrequency = 789; # Long | Highest frequency to include in Hz. Default is the end of the spectrum
my $threshold = 3.4; # Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
my $threshold = 56; # Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
eval {
my $result = $api_instance->devicesetSpectrumHistoryGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, startFrequency => $startFrequency, stopFrequency => $stopFrequency, threshold => $threshold);
@ -39266,11 +39266,11 @@ from pprint import pprint @@ -39266,11 +39266,11 @@ 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
seconds = 3.4 # Float | How far back to look, in seconds (default 60) (optional)
seconds = 56 # Integer | How far back to look, in seconds (default 60) (optional)
bins = 56 # Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
startFrequency = 789 # Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
stopFrequency = 789 # Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
threshold = 3.4 # Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
threshold = 56 # Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
try:
api_response = api_instance.deviceset_spectrum_history_get(deviceSetIndex, seconds=seconds, bins=bins, startFrequency=startFrequency, stopFrequency=stopFrequency, threshold=threshold)
@ -39330,11 +39330,8 @@ except ApiException as e: @@ -39330,11 +39330,8 @@ except ApiException as e:
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Float
Integer
</span>
<span class="format">
(float)
</span>
<div class="inner description">
How far back to look, in seconds (default 60)
@ -39419,11 +39416,8 @@ except ApiException as e: @@ -39419,11 +39416,8 @@ except ApiException as e:
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Float
Integer
</span>
<span class="format">
(float)
</span>
<div class="inner description">
How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
@ -39662,7 +39656,7 @@ public class DeviceSetApiExample { @@ -39662,7 +39656,7 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Float seconds = 3.4; // Float | How far back to look, in seconds (default 60)
Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
Integer bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
Integer rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39685,7 +39679,7 @@ public class DeviceSetApiExample { @@ -39685,7 +39679,7 @@ 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
Float seconds = 3.4; // Float | How far back to look, in seconds (default 60)
Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
Integer bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
Integer rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39705,7 +39699,7 @@ public class DeviceSetApiExample { @@ -39705,7 +39699,7 @@ public class DeviceSetApiExample {
</div> -->
<div class="tab-pane" id="examples-DeviceSet-devicesetSpectrumHistoryImageGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
Float *seconds = 3.4; // How far back to look, in seconds (default 60) (optional)
Integer *seconds = 56; // How far back to look, in seconds (default 60) (optional)
Integer *bins = 56; // Width in pixels, 1 to 4096 (default 512) (optional)
Integer *rows = 56; // At most this many rows, the most recent (default 512, up to 4000) (optional)
Long *startFrequency = 789; // Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
@ -39735,7 +39729,7 @@ var api = new SdRangel.DeviceSetApi() @@ -39735,7 +39729,7 @@ var api = new SdRangel.DeviceSetApi()
var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
var opts = {
'seconds': 3.4, // {Float} How far back to look, in seconds (default 60)
'seconds': 56, // {Integer} How far back to look, in seconds (default 60)
'bins': 56, // {Integer} Width in pixels, 1 to 4096 (default 512)
'rows': 56, // {Integer} At most this many rows, the most recent (default 512, up to 4000)
'startFrequency': 789, // {Long} Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39772,7 +39766,7 @@ namespace Example @@ -39772,7 +39766,7 @@ namespace Example
var apiInstance = new DeviceSetApi();
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
var seconds = 3.4; // Float | How far back to look, in seconds (default 60) (optional)
var seconds = 56; // Integer | How far back to look, in seconds (default 60) (optional)
var bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512) (optional)
var rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000) (optional)
var startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
@ -39798,7 +39792,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); @@ -39798,7 +39792,7 @@ 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
$seconds = 3.4; // Float | How far back to look, in seconds (default 60)
$seconds = 56; // Integer | How far back to look, in seconds (default 60)
$bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
$rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
$startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39819,7 +39813,7 @@ use SWGSDRangel::DeviceSetApi; @@ -39819,7 +39813,7 @@ use SWGSDRangel::DeviceSetApi;
my $api_instance = SWGSDRangel::DeviceSetApi->new();
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
my $seconds = 3.4; # Float | How far back to look, in seconds (default 60)
my $seconds = 56; # Integer | How far back to look, in seconds (default 60)
my $bins = 56; # Integer | Width in pixels, 1 to 4096 (default 512)
my $rows = 56; # Integer | At most this many rows, the most recent (default 512, up to 4000)
my $startFrequency = 789; # Long | Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39843,7 +39837,7 @@ from pprint import pprint @@ -39843,7 +39837,7 @@ 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
seconds = 3.4 # Float | How far back to look, in seconds (default 60) (optional)
seconds = 56 # Integer | How far back to look, in seconds (default 60) (optional)
bins = 56 # Integer | Width in pixels, 1 to 4096 (default 512) (optional)
rows = 56 # Integer | At most this many rows, the most recent (default 512, up to 4000) (optional)
startFrequency = 789 # Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
@ -39906,11 +39900,8 @@ except ApiException as e: @@ -39906,11 +39900,8 @@ except ApiException as e:
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Float
Integer
</span>
<span class="format">
(float)
</span>
<div class="inner description">
How far back to look, in seconds (default 60)
@ -70206,7 +70197,7 @@ $(document).ready(function() { @@ -70206,7 +70197,7 @@ $(document).ready(function() {
</div>
<div id="generator">
<div class="content">
Generated 2026-09-15T17:49:43.819+02:00
Generated 2026-09-15T18:30:50.537+02:00
</div>
</div>
</div>

4
sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml

@ -648,10 +648,10 @@ GLSpectrumHistory: @@ -648,10 +648,10 @@ GLSpectrumHistory:
description: "Per bin fraction of rows in which the bin was above the threshold, 0 to 1."
signalCount:
type: integer
signals:
signalList:
type: array
items:
$ref: "#/SpectrumHistorySignal"
$ref: "/doc/swagger/include/GLSpectrum.yaml#/SpectrumHistorySignal"
description: "Runs of adjacent bins whose maximum rose above the threshold."
SpectrumHistorySignal:
description: A signal found in the spectrum history

9
sdrbase/resources/webapi/doc/swagger/swagger.yaml

@ -1447,8 +1447,7 @@ paths: @@ -1447,8 +1447,7 @@ paths:
in: query
description: How far back to look, in seconds (default 60)
required: false
type: number
format: float
type: integer
- name: bins
in: query
description: Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
@ -1470,8 +1469,7 @@ paths: @@ -1470,8 +1469,7 @@ paths:
in: query
description: How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
required: false
type: number
format: float
type: integer
responses:
"200":
description: On success return the statistics
@ -1510,8 +1508,7 @@ paths: @@ -1510,8 +1508,7 @@ paths:
in: query
description: How far back to look, in seconds (default 60)
required: false
type: number
format: float
type: integer
- name: bins
in: query
description: Width in pixels, 1 to 4096 (default 512)

69
swagger/sdrangel/code/html2/index.html

@ -10605,11 +10605,11 @@ margin-bottom: 20px; @@ -10605,11 +10605,11 @@ margin-bottom: 20px;
"signalCount" : {
"type" : "integer"
},
"signals" : {
"signalList" : {
"type" : "array",
"description" : "Runs of adjacent bins whose maximum rose above the threshold.",
"items" : {
"$ref" : "#/SpectrumHistorySignal"
"$ref" : "#/definitions/SpectrumHistorySignal"
}
}
},
@ -39077,11 +39077,11 @@ public class DeviceSetApiExample { @@ -39077,11 +39077,11 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Float seconds = 3.4; // Float | How far back to look, in seconds (default 60)
Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
Integer bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
Float threshold = 3.4; // Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
Integer threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
try {
GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
System.out.println(result);
@ -39101,11 +39101,11 @@ public class DeviceSetApiExample { @@ -39101,11 +39101,11 @@ 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
Float seconds = 3.4; // Float | How far back to look, in seconds (default 60)
Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
Integer bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
Float threshold = 3.4; // Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
Integer threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
try {
GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
System.out.println(result);
@ -39122,11 +39122,11 @@ public class DeviceSetApiExample { @@ -39122,11 +39122,11 @@ public class DeviceSetApiExample {
</div> -->
<div class="tab-pane" id="examples-DeviceSet-devicesetSpectrumHistoryGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
Float *seconds = 3.4; // How far back to look, in seconds (default 60) (optional)
Integer *seconds = 56; // How far back to look, in seconds (default 60) (optional)
Integer *bins = 56; // Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
Long *startFrequency = 789; // Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
Long *stopFrequency = 789; // Highest frequency to include in Hz. Default is the end of the spectrum (optional)
Float *threshold = 3.4; // How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
Integer *threshold = 56; // How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
@ -39155,11 +39155,11 @@ var api = new SdRangel.DeviceSetApi() @@ -39155,11 +39155,11 @@ var api = new SdRangel.DeviceSetApi()
var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
var opts = {
'seconds': 3.4, // {Float} How far back to look, in seconds (default 60)
'seconds': 56, // {Integer} How far back to look, in seconds (default 60)
'bins': 56, // {Integer} Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
'startFrequency': 789, // {Long} Lowest frequency to include in Hz. Default is the start of the spectrum
'stopFrequency': 789, // {Long} Highest frequency to include in Hz. Default is the end of the spectrum
'threshold': 3.4 // {Float} How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
'threshold': 56 // {Integer} How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
};
var callback = function(error, data, response) {
@ -39192,11 +39192,11 @@ namespace Example @@ -39192,11 +39192,11 @@ namespace Example
var apiInstance = new DeviceSetApi();
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
var seconds = 3.4; // Float | How far back to look, in seconds (default 60) (optional)
var seconds = 56; // Integer | How far back to look, in seconds (default 60) (optional)
var bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
var startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
var stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
var threshold = 3.4; // Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
var threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
try
{
@ -39219,11 +39219,11 @@ require_once(__DIR__ . '/vendor/autoload.php'); @@ -39219,11 +39219,11 @@ 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
$seconds = 3.4; // Float | How far back to look, in seconds (default 60)
$seconds = 56; // Integer | How far back to look, in seconds (default 60)
$bins = 56; // Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
$startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
$stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
$threshold = 3.4; // Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
$threshold = 56; // Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
try {
$result = $api_instance->devicesetSpectrumHistoryGet($deviceSetIndex, $seconds, $bins, $startFrequency, $stopFrequency, $threshold);
@ -39241,11 +39241,11 @@ use SWGSDRangel::DeviceSetApi; @@ -39241,11 +39241,11 @@ use SWGSDRangel::DeviceSetApi;
my $api_instance = SWGSDRangel::DeviceSetApi->new();
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
my $seconds = 3.4; # Float | How far back to look, in seconds (default 60)
my $seconds = 56; # Integer | How far back to look, in seconds (default 60)
my $bins = 56; # Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128)
my $startFrequency = 789; # Long | Lowest frequency to include in Hz. Default is the start of the spectrum
my $stopFrequency = 789; # Long | Highest frequency to include in Hz. Default is the end of the spectrum
my $threshold = 3.4; # Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
my $threshold = 56; # Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
eval {
my $result = $api_instance->devicesetSpectrumHistoryGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, startFrequency => $startFrequency, stopFrequency => $stopFrequency, threshold => $threshold);
@ -39266,11 +39266,11 @@ from pprint import pprint @@ -39266,11 +39266,11 @@ 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
seconds = 3.4 # Float | How far back to look, in seconds (default 60) (optional)
seconds = 56 # Integer | How far back to look, in seconds (default 60) (optional)
bins = 56 # Integer | Number of bins to reduce the spectrum to, 1 to 4096 (default 128) (optional)
startFrequency = 789 # Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
stopFrequency = 789 # Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
threshold = 3.4 # Float | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
threshold = 56 # Integer | How far above the measured floor a bin must rise to count as occupied, in dB (default 6) (optional)
try:
api_response = api_instance.deviceset_spectrum_history_get(deviceSetIndex, seconds=seconds, bins=bins, startFrequency=startFrequency, stopFrequency=stopFrequency, threshold=threshold)
@ -39330,11 +39330,8 @@ except ApiException as e: @@ -39330,11 +39330,8 @@ except ApiException as e:
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Float
Integer
</span>
<span class="format">
(float)
</span>
<div class="inner description">
How far back to look, in seconds (default 60)
@ -39419,11 +39416,8 @@ except ApiException as e: @@ -39419,11 +39416,8 @@ except ApiException as e:
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Float
Integer
</span>
<span class="format">
(float)
</span>
<div class="inner description">
How far above the measured floor a bin must rise to count as occupied, in dB (default 6)
@ -39662,7 +39656,7 @@ public class DeviceSetApiExample { @@ -39662,7 +39656,7 @@ public class DeviceSetApiExample {
DeviceSetApi apiInstance = new DeviceSetApi();
Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
Float seconds = 3.4; // Float | How far back to look, in seconds (default 60)
Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
Integer bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
Integer rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39685,7 +39679,7 @@ public class DeviceSetApiExample { @@ -39685,7 +39679,7 @@ 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
Float seconds = 3.4; // Float | How far back to look, in seconds (default 60)
Integer seconds = 56; // Integer | How far back to look, in seconds (default 60)
Integer bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
Integer rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
Long startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39705,7 +39699,7 @@ public class DeviceSetApiExample { @@ -39705,7 +39699,7 @@ public class DeviceSetApiExample {
</div> -->
<div class="tab-pane" id="examples-DeviceSet-devicesetSpectrumHistoryImageGet-0-objc">
<pre class="prettyprint"><code class="language-cpp">Integer *deviceSetIndex = 56; // Index of device set in the device set list
Float *seconds = 3.4; // How far back to look, in seconds (default 60) (optional)
Integer *seconds = 56; // How far back to look, in seconds (default 60) (optional)
Integer *bins = 56; // Width in pixels, 1 to 4096 (default 512) (optional)
Integer *rows = 56; // At most this many rows, the most recent (default 512, up to 4000) (optional)
Long *startFrequency = 789; // Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
@ -39735,7 +39729,7 @@ var api = new SdRangel.DeviceSetApi() @@ -39735,7 +39729,7 @@ var api = new SdRangel.DeviceSetApi()
var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
var opts = {
'seconds': 3.4, // {Float} How far back to look, in seconds (default 60)
'seconds': 56, // {Integer} How far back to look, in seconds (default 60)
'bins': 56, // {Integer} Width in pixels, 1 to 4096 (default 512)
'rows': 56, // {Integer} At most this many rows, the most recent (default 512, up to 4000)
'startFrequency': 789, // {Long} Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39772,7 +39766,7 @@ namespace Example @@ -39772,7 +39766,7 @@ namespace Example
var apiInstance = new DeviceSetApi();
var deviceSetIndex = 56; // Integer | Index of device set in the device set list
var seconds = 3.4; // Float | How far back to look, in seconds (default 60) (optional)
var seconds = 56; // Integer | How far back to look, in seconds (default 60) (optional)
var bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512) (optional)
var rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000) (optional)
var startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
@ -39798,7 +39792,7 @@ require_once(__DIR__ . '/vendor/autoload.php'); @@ -39798,7 +39792,7 @@ 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
$seconds = 3.4; // Float | How far back to look, in seconds (default 60)
$seconds = 56; // Integer | How far back to look, in seconds (default 60)
$bins = 56; // Integer | Width in pixels, 1 to 4096 (default 512)
$rows = 56; // Integer | At most this many rows, the most recent (default 512, up to 4000)
$startFrequency = 789; // Long | Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39819,7 +39813,7 @@ use SWGSDRangel::DeviceSetApi; @@ -39819,7 +39813,7 @@ use SWGSDRangel::DeviceSetApi;
my $api_instance = SWGSDRangel::DeviceSetApi->new();
my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
my $seconds = 3.4; # Float | How far back to look, in seconds (default 60)
my $seconds = 56; # Integer | How far back to look, in seconds (default 60)
my $bins = 56; # Integer | Width in pixels, 1 to 4096 (default 512)
my $rows = 56; # Integer | At most this many rows, the most recent (default 512, up to 4000)
my $startFrequency = 789; # Long | Lowest frequency to include in Hz. Default is the start of the spectrum
@ -39843,7 +39837,7 @@ from pprint import pprint @@ -39843,7 +39837,7 @@ 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
seconds = 3.4 # Float | How far back to look, in seconds (default 60) (optional)
seconds = 56 # Integer | How far back to look, in seconds (default 60) (optional)
bins = 56 # Integer | Width in pixels, 1 to 4096 (default 512) (optional)
rows = 56 # Integer | At most this many rows, the most recent (default 512, up to 4000) (optional)
startFrequency = 789 # Long | Lowest frequency to include in Hz. Default is the start of the spectrum (optional)
@ -39906,11 +39900,8 @@ except ApiException as e: @@ -39906,11 +39900,8 @@ except ApiException as e:
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Float
Integer
</span>
<span class="format">
(float)
</span>
<div class="inner description">
How far back to look, in seconds (default 60)
@ -70206,7 +70197,7 @@ $(document).ready(function() { @@ -70206,7 +70197,7 @@ $(document).ready(function() {
</div>
<div id="generator">
<div class="content">
Generated 2026-09-15T17:49:43.819+02:00
Generated 2026-09-15T18:30:50.537+02:00
</div>
</div>
</div>

4
swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp

@ -1586,7 +1586,7 @@ SWGDeviceSetApi::devicesetSpectrumDataGetCallback(SWGHttpRequestWorker * worker) @@ -1586,7 +1586,7 @@ SWGDeviceSetApi::devicesetSpectrumDataGetCallback(SWGHttpRequestWorker * worker)
}
void
SWGDeviceSetApi::devicesetSpectrumHistoryGet(qint32 device_set_index, float seconds, qint32 bins, qint64 start_frequency, qint64 stop_frequency, float threshold) {
SWGDeviceSetApi::devicesetSpectrumHistoryGet(qint32 device_set_index, qint32 seconds, qint32 bins, qint64 start_frequency, qint64 stop_frequency, qint32 threshold) {
QString fullPath;
fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/spectrum/history");
@ -1680,7 +1680,7 @@ SWGDeviceSetApi::devicesetSpectrumHistoryGetCallback(SWGHttpRequestWorker * work @@ -1680,7 +1680,7 @@ SWGDeviceSetApi::devicesetSpectrumHistoryGetCallback(SWGHttpRequestWorker * work
}
void
SWGDeviceSetApi::devicesetSpectrumHistoryImageGet(qint32 device_set_index, float seconds, qint32 bins, qint32 rows, qint64 start_frequency, qint64 stop_frequency) {
SWGDeviceSetApi::devicesetSpectrumHistoryImageGet(qint32 device_set_index, qint32 seconds, qint32 bins, qint32 rows, qint64 start_frequency, qint64 stop_frequency) {
QString fullPath;
fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image");

4
swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h

@ -79,8 +79,8 @@ public: @@ -79,8 +79,8 @@ public:
void devicesetGet(qint32 device_set_index);
void devicesetSpectrumActionsPost(qint32 device_set_index, SWGSpectrumActions& body);
void devicesetSpectrumDataGet(qint32 device_set_index, qint32 bins, qint64 start_frequency, qint64 stop_frequency, QString* reduce);
void devicesetSpectrumHistoryGet(qint32 device_set_index, float seconds, qint32 bins, qint64 start_frequency, qint64 stop_frequency, float threshold);
void devicesetSpectrumHistoryImageGet(qint32 device_set_index, float seconds, qint32 bins, qint32 rows, qint64 start_frequency, qint64 stop_frequency);
void devicesetSpectrumHistoryGet(qint32 device_set_index, qint32 seconds, qint32 bins, qint64 start_frequency, qint64 stop_frequency, qint32 threshold);
void devicesetSpectrumHistoryImageGet(qint32 device_set_index, qint32 seconds, qint32 bins, qint32 rows, qint64 start_frequency, qint64 stop_frequency);
void devicesetSpectrumReportGet(qint32 device_set_index);
void devicesetSpectrumServerDelete(qint32 device_set_index);
void devicesetSpectrumServerGet(qint32 device_set_index);

34
swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp

@ -62,8 +62,8 @@ SWGGLSpectrumHistory::SWGGLSpectrumHistory() { @@ -62,8 +62,8 @@ SWGGLSpectrumHistory::SWGGLSpectrumHistory() {
m_occupancy_isSet = false;
signal_count = 0;
m_signal_count_isSet = false;
signals = nullptr;
m_signals_isSet = false;
signal_list = nullptr;
m_signal_list_isSet = false;
}
SWGGLSpectrumHistory::~SWGGLSpectrumHistory() {
@ -106,8 +106,8 @@ SWGGLSpectrumHistory::init() { @@ -106,8 +106,8 @@ SWGGLSpectrumHistory::init() {
m_occupancy_isSet = false;
signal_count = 0;
m_signal_count_isSet = false;
signals = new QList<SWG#/SpectrumHistorySignal*>();
m_signals_isSet = false;
signal_list = new QList<SWGSpectrumHistorySignal*>();
m_signal_list_isSet = false;
}
void
@ -133,12 +133,12 @@ SWGGLSpectrumHistory::cleanup() { @@ -133,12 +133,12 @@ SWGGLSpectrumHistory::cleanup() {
if(signals != nullptr) {
auto arr = signals;
if(signal_list != nullptr) {
auto arr = signal_list;
for(auto o: *arr) {
delete o;
}
delete signals;
delete signal_list;
}
}
@ -188,7 +188,7 @@ SWGGLSpectrumHistory::fromJsonObject(QJsonObject &pJson) { @@ -188,7 +188,7 @@ SWGGLSpectrumHistory::fromJsonObject(QJsonObject &pJson) {
::SWGSDRangel::setValue(&signal_count, pJson["signalCount"], "qint32", "");
::SWGSDRangel::setValue(&signals, pJson["signals"], "QList", "SWG#/SpectrumHistorySignal");
::SWGSDRangel::setValue(&signal_list, pJson["signalList"], "QList", "SWGSpectrumHistorySignal");
}
QString
@ -256,8 +256,8 @@ SWGGLSpectrumHistory::asJsonObject() { @@ -256,8 +256,8 @@ SWGGLSpectrumHistory::asJsonObject() {
if(m_signal_count_isSet){
obj->insert("signalCount", QJsonValue(signal_count));
}
if(signals && signals->size() > 0){
toJsonArray((QList<void*>*)signals, obj, "signals", "SWG#/SpectrumHistorySignal");
if(signal_list && signal_list->size() > 0){
toJsonArray((QList<void*>*)signal_list, obj, "signalList", "SWGSpectrumHistorySignal");
}
return obj;
@ -433,14 +433,14 @@ SWGGLSpectrumHistory::setSignalCount(qint32 signal_count) { @@ -433,14 +433,14 @@ SWGGLSpectrumHistory::setSignalCount(qint32 signal_count) {
this->m_signal_count_isSet = true;
}
QList<SWG#/SpectrumHistorySignal*>*
SWGGLSpectrumHistory::getSignals() {
return signals;
QList<SWGSpectrumHistorySignal*>*
SWGGLSpectrumHistory::getSignalList() {
return signal_list;
}
void
SWGGLSpectrumHistory::setSignals(QList<SWG#/SpectrumHistorySignal*>* signals) {
this->signals = signals;
this->m_signals_isSet = true;
SWGGLSpectrumHistory::setSignalList(QList<SWGSpectrumHistorySignal*>* signal_list) {
this->signal_list = signal_list;
this->m_signal_list_isSet = true;
}
@ -508,7 +508,7 @@ SWGGLSpectrumHistory::isSet(){ @@ -508,7 +508,7 @@ SWGGLSpectrumHistory::isSet(){
if(m_signal_count_isSet){
isObjectUpdated = true; break;
}
if(signals && (signals->size() > 0)){
if(signal_list && (signal_list->size() > 0)){
isObjectUpdated = true; break;
}
}while(false);

10
swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h

@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
#include <QJsonObject>
#include "SWG#/SpectrumHistorySignal.h"
#include "SWGSpectrumHistorySignal.h"
#include <QList>
#include <QString>
@ -95,8 +95,8 @@ public: @@ -95,8 +95,8 @@ public:
qint32 getSignalCount();
void setSignalCount(qint32 signal_count);
QList<SWG#/SpectrumHistorySignal*>* getSignals();
void setSignals(QList<SWG#/SpectrumHistorySignal*>* signals);
QList<SWGSpectrumHistorySignal*>* getSignalList();
void setSignalList(QList<SWGSpectrumHistorySignal*>* signal_list);
virtual bool isSet() override;
@ -153,8 +153,8 @@ private: @@ -153,8 +153,8 @@ private:
qint32 signal_count;
bool m_signal_count_isSet;
QList<SWG#/SpectrumHistorySignal*>* signals;
bool m_signals_isSet;
QList<SWGSpectrumHistorySignal*>* signal_list;
bool m_signal_list_isSet;
};

Loading…
Cancel
Save