From dddab138e9f87a50005ef7a9cb77c3c30bdedae9 Mon Sep 17 00:00:00 2001 From: srcejon Date: Tue, 15 Sep 2026 17:31:07 +0100 Subject: [PATCH] Regenerate swagger --- sdrbase/resources/webapi/doc/html2/index.html | 69 ++++++++----------- .../doc/swagger/include/GLSpectrum.yaml | 4 +- .../resources/webapi/doc/swagger/swagger.yaml | 9 +-- swagger/sdrangel/code/html2/index.html | 69 ++++++++----------- .../code/qt5/client/SWGDeviceSetApi.cpp | 4 +- .../code/qt5/client/SWGDeviceSetApi.h | 4 +- .../code/qt5/client/SWGGLSpectrumHistory.cpp | 34 ++++----- .../code/qt5/client/SWGGLSpectrumHistory.h | 10 +-- 8 files changed, 91 insertions(+), 112 deletions(-) diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index fb8997846..25a9a0d55 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -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 { 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 { 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 { -->
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()
 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
             
             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');
 
 $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;
 
 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
 # 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:
         
- Float + Integer - - (float) -
How far back to look, in seconds (default 60) @@ -39419,11 +39416,8 @@ except ApiException as e:
- Float + Integer - - (float) -
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 { 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 { 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 {
-->
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()
 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
             
             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');
 
 $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;
 
 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
 # 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:
         
- Float + Integer - - (float) -
How far back to look, in seconds (default 60) @@ -70206,7 +70197,7 @@ $(document).ready(function() {
- Generated 2026-09-15T17:49:43.819+02:00 + Generated 2026-09-15T18:30:50.537+02:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml b/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml index 3546087e7..29a9ee77f 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml @@ -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 diff --git a/sdrbase/resources/webapi/doc/swagger/swagger.yaml b/sdrbase/resources/webapi/doc/swagger/swagger.yaml index 8ffad8fef..b326f60fd 100644 --- a/sdrbase/resources/webapi/doc/swagger/swagger.yaml +++ b/sdrbase/resources/webapi/doc/swagger/swagger.yaml @@ -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: 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: 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) diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index fb8997846..25a9a0d55 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -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 { 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 { 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 {
-->
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()
 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
             
             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');
 
 $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;
 
 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
 # 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:
         
- Float + Integer - - (float) -
How far back to look, in seconds (default 60) @@ -39419,11 +39416,8 @@ except ApiException as e:
- Float + Integer - - (float) -
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 { 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 { 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 {
-->
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()
 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
             
             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');
 
 $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;
 
 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
 # 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:
         
- Float + Integer - - (float) -
How far back to look, in seconds (default 60) @@ -70206,7 +70197,7 @@ $(document).ready(function() {
- Generated 2026-09-15T17:49:43.819+02:00 + Generated 2026-09-15T18:30:50.537+02:00
diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp index 1b02d0cc0..835296669 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp @@ -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 } 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"); diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h index e5aa73b5e..b46e88985 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h @@ -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); diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp index 266acc499..dd9ede0ed 100644 --- a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp @@ -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() { m_occupancy_isSet = false; signal_count = 0; m_signal_count_isSet = false; - signals = new QList(); - m_signals_isSet = false; + signal_list = new QList(); + m_signal_list_isSet = false; } void @@ -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) { ::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() { if(m_signal_count_isSet){ obj->insert("signalCount", QJsonValue(signal_count)); } - if(signals && signals->size() > 0){ - toJsonArray((QList*)signals, obj, "signals", "SWG#/SpectrumHistorySignal"); + if(signal_list && signal_list->size() > 0){ + toJsonArray((QList*)signal_list, obj, "signalList", "SWGSpectrumHistorySignal"); } return obj; @@ -433,14 +433,14 @@ SWGGLSpectrumHistory::setSignalCount(qint32 signal_count) { this->m_signal_count_isSet = true; } -QList* -SWGGLSpectrumHistory::getSignals() { - return signals; +QList* +SWGGLSpectrumHistory::getSignalList() { + return signal_list; } void -SWGGLSpectrumHistory::setSignals(QList* signals) { - this->signals = signals; - this->m_signals_isSet = true; +SWGGLSpectrumHistory::setSignalList(QList* signal_list) { + this->signal_list = signal_list; + this->m_signal_list_isSet = true; } @@ -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); diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h index 0f6f7627d..e13ca5ed5 100644 --- a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h @@ -22,7 +22,7 @@ #include -#include "SWG#/SpectrumHistorySignal.h" +#include "SWGSpectrumHistorySignal.h" #include #include @@ -95,8 +95,8 @@ public: qint32 getSignalCount(); void setSignalCount(qint32 signal_count); - QList* getSignals(); - void setSignals(QList* signals); + QList* getSignalList(); + void setSignalList(QList* signal_list); virtual bool isSet() override; @@ -153,8 +153,8 @@ private: qint32 signal_count; bool m_signal_count_isSet; - QList* signals; - bool m_signals_isSet; + QList* signal_list; + bool m_signal_list_isSet; };