diff --git a/sdrbase/resources/webapi/doc/html2/index.html b/sdrbase/resources/webapi/doc/html2/index.html index 37df228fa..fb8997846 100644 --- a/sdrbase/resources/webapi/doc/html2/index.html +++ b/sdrbase/resources/webapi/doc/html2/index.html @@ -10519,6 +10519,101 @@ margin-bottom: 20px; } }, "description" : "A copy of the current power spectrum, reduced to the number of bins asked for so that the answer stays a sensible size whatever the FFT size. The spectrum is only computed while something is consuming it, a spectrum window or a websocket client, so updated says how old these values are and is absent if none has been produced yet.\n" +}; + defs.GLSpectrumHistory = { + "properties" : { + "centerFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width of the whole spectrum in Hz." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the first returned bin in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the last returned bin in Hz." + }, + "binBandwidth" : { + "type" : "integer", + "description" : "Width of each returned bin in Hz." + }, + "bins" : { + "type" : "integer" + }, + "rows" : { + "type" : "integer", + "description" : "Rows of history used." + }, + "skippedRows" : { + "type" : "integer", + "description" : "Rows in the period that were taken with the device tuned or sampling differently, and left out." + }, + "firstTime" : { + "type" : "string", + "description" : "Time of the oldest row used, ISO 8601." + }, + "lastTime" : { + "type" : "string", + "description" : "Time of the newest row used, ISO 8601." + }, + "seconds" : { + "type" : "number", + "format" : "float", + "description" : "Span between the oldest and newest rows used." + }, + "floorDb" : { + "type" : "number", + "format" : "float", + "description" : "The measured noise floor." + }, + "thresholdDb" : { + "type" : "number", + "format" : "float", + "description" : "The level above which a bin counts as occupied." + }, + "maxDb" : { + "type" : "array", + "description" : "Per bin maximum over the rows.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "meanDb" : { + "type" : "array", + "description" : "Per bin mean over the rows.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "occupancy" : { + "type" : "array", + "description" : "Per bin fraction of rows in which the bin was above the threshold, 0 to 1.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "signalCount" : { + "type" : "integer" + }, + "signals" : { + "type" : "array", + "description" : "Runs of adjacent bins whose maximum rose above the threshold.", + "items" : { + "$ref" : "#/SpectrumHistorySignal" + } + } + }, + "description" : "Statistics over the rows of spectrum history the GUI keeps for scrolling, reduced to a number of bins. Powers are in dB whatever the display shows. The floor is the median of the per bin means, and a bin counts as occupied in a row when it is above the floor by the threshold. Rows taken with another centre frequency or sample rate are skipped and counted.\n" }; defs.GLSpectrumReport = { "properties" : { @@ -22208,6 +22303,47 @@ margin-bottom: 20px; } }, "description" : "Spectrum histogram marker settings" +}; + defs.SpectrumHistorySignal = { + "properties" : { + "frequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Frequency of the strongest bin in Hz." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Lower edge in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Upper edge in Hz." + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width in Hz, to the bin." + }, + "peakDb" : { + "type" : "number", + "format" : "float" + }, + "dutyCycle" : { + "type" : "number", + "format" : "float", + "description" : "Fraction of rows in which any bin of the signal was above the threshold, 0 to 1: 1 for a continuous carrier, small for a burst." + }, + "firstSeen" : { + "type" : "string", + "description" : "Time of the first row it was up in, ISO 8601." + }, + "lastSeen" : { + "type" : "string", + "description" : "Time of the last row it was up in, ISO 8601." + } + }, + "description" : "A signal found in the spectrum history" }; defs.SpectrumMemorySettings = { "properties" : { @@ -24580,6 +24716,47 @@ margin-bottom: 20px; } }, "description" : "WFMMod" +}; + defs.WindowInfo = { + "properties" : { + "kind" : { + "type" : "string", + "description" : "device, spectrum, channel or feature" + }, + "deviceSetIndex" : { + "type" : "integer", + "description" : "Index of the device set, for a device, spectrum or channel window" + }, + "index" : { + "type" : "integer", + "description" : "Channel index within the device set, or feature index; absent for a device or spectrum window" + }, + "title" : { + "type" : "string" + }, + "workspaceIndex" : { + "type" : "integer" + }, + "hidden" : { + "type" : "integer", + "description" : "1 when the window is hidden, 0 when it is shown" + } + }, + "description" : "One window of the GUI" +}; + defs.WindowList = { + "properties" : { + "windowCount" : { + "type" : "integer" + }, + "windows" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/WindowInfo" + } + } + }, + "description" : "Every device, spectrum, channel and feature window of the GUI" }; defs.WorkspaceActions = { "required" : [ "arrange" ], @@ -24593,14 +24770,17 @@ margin-bottom: 20px; "description" : "Actions on a workspace" }; defs.WorkspaceInfo = { - "required" : [ "index" ], "properties" : { "index" : { "type" : "integer", "description" : "index of workspace in the list of workspaces" + }, + "hidden" : { + "type" : "integer", + "description" : "1 when the window is hidden, 0 when it is shown. Showing a window also raises it and shows the workspace holding it" } }, - "description" : "Workspace information" + "description" : "Where a window is and whether it is shown (GUI). On a PUT either field may be given alone: index moves the window, hidden hides or shows it" }; defs.XtrxInputReport = { "properties" : { @@ -25211,6 +25391,12 @@ margin-bottom: 20px;
  • devicesetSpectrumDataGet
  • +
  • + devicesetSpectrumHistoryGet +
  • +
  • + devicesetSpectrumHistoryImageGet +
  • devicesetSpectrumReportGet
  • @@ -25414,6 +25600,9 @@ margin-bottom: 20px;
  • instanceSummary
  • +
  • + instanceWindowsGet +
  • instanceWorkspaceAdd @@ -38838,41 +39027,42 @@ except ApiException as e:
    -
    -
    +
    +
    -

    devicesetSpectrumReportGet

    +

    devicesetSpectrumHistoryGet

    -

    Get the latest main spectrum measurement results

    +

    Statistics over the spectrum history the GUI keeps for scrolling: per bin maximum, mean and occupancy over a period, and the signals found. Only rows taken with the device tuned and sampling as it is now are used. Needs scrolling enabled in the spectrum settings (scrollBar, scrollLength); the server keeps no history +


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/report
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/history

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/report"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/history?seconds=&bins=&startFrequency=&stopFrequency=&threshold="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -38887,18 +39077,23 @@ 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 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)
             try {
    -            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
    +            GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -38906,27 +39101,42 @@ 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 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)
             try {
    -            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
    +            GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    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 *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)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumReportGetWith:deviceSetIndex
    -              completionHandler: ^(GLSpectrumReport output, NSError* error) {
    +[apiInstance devicesetSpectrumHistoryGetWith:deviceSetIndex
    +    seconds:seconds
    +    bins:bins
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +    threshold:threshold
    +              completionHandler: ^(GLSpectrumHistory output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -38937,13 +39147,20 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     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)
    +  '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)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -38952,14 +39169,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumReportGet(deviceSetIndex, callback);
    +api.devicesetSpectrumHistoryGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -38968,22 +39185,27 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumReportGetExample
    +    public class devicesetSpectrumHistoryGetExample
         {
             public void main()
             {
                 
                 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 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) 
     
                 try
                 {
    -                GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
    +                GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumReportGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumHistoryGet: " + e.Message );
                 }
             }
         }
    @@ -38991,40 +39213,50 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$seconds = 3.4; // Float | 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)
     
     try {
    -    $result = $api_instance->devicesetSpectrumReportGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumHistoryGet($deviceSetIndex, $seconds, $bins, $startFrequency, $stopFrequency, $threshold);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumReportGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $seconds = 3.4; # Float | 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)
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumReportGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumHistoryGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, startFrequency => $startFrequency, stopFrequency => $stopFrequency, threshold => $threshold);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumReportGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39034,12 +39266,17 @@ 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)
    +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)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_report_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_history_get(deviceSetIndex, seconds=seconds, bins=bins, startFrequency=startFrequency, stopFrequency=stopFrequency, threshold=threshold)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumReportGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: %s\n" % e)
    @@ -39055,7 +39292,7 @@ except ApiException as e: -
    +
    @@ -39079,26 +39316,145 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    seconds + + +
    +
    +
    + + Float + + + (float) + + +
    + How far back to look, in seconds (default 60) +
    +
    +
    +
    +
    bins + + +
    +
    +
    + + Integer + + +
    + Number of bins to reduce the spectrum to, 1 to 4096 (default 128) +
    +
    +
    +
    +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Lowest frequency to include in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to include in Hz. Default is the end of the spectrum +
    +
    +
    +
    +
    threshold + + +
    +
    +
    + + Float + + + (float) + + +
    + How far above the measured floor a bin must rise to count as occupied, in dB (default 6) +
    +
    +
    +
    +

    Responses

    -

    Status: 200 - On success return the results of the selected measurement

    +

    Status: 200 - On success return the statistics

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid index

    +

    Status: 400 - Invalid parameters

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Invalid index, or no history

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerDelete

    +

    devicesetSpectrumHistoryImageGet

    -

    Stop main spectrum websocket server

    +

    The spectrum history as a greyscale PNG waterfall, one pixel per bin across and one per row down with the newest row at the bottom, black a little below the noise floor and white at the strongest bin. The frequency and time extents come back in X-Spectrum-History headers and in the JSON form of the same call +


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image?seconds=&bins=&rows=&startFrequency=&stopFrequency="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39305,18 +39662,22 @@ 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 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
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    -            System.out.println(result);
    +            apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryImageGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -39324,30 +39685,41 @@ 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 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
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    -            System.out.println(result);
    +            apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryImageGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    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 *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)
    +Long *stopFrequency = 789; // Highest frequency to include in Hz. Default is the end of the spectrum (optional)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerDeleteWith:deviceSetIndex
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    +[apiInstance devicesetSpectrumHistoryImageGetWith:deviceSetIndex
    +    seconds:seconds
    +    bins:bins
    +    rows:rows
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +              completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
                                 }
    @@ -39355,29 +39727,36 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     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)
    +  '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
    +  'stopFrequency': 789 // {Long} Highest frequency to include in Hz. Default is the end of the spectrum
    +};
     
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
       } else {
    -    console.log('API called successfully. Returned data: ' + data);
    +    console.log('API called successfully.');
       }
     };
    -api.devicesetSpectrumServerDelete(deviceSetIndex, callback);
    +api.devicesetSpectrumHistoryImageGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -39386,22 +39765,26 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerDeleteExample
    +    public class devicesetSpectrumHistoryImageGetExample
         {
             public void main()
             {
                 
                 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 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) 
    +            var stopFrequency = 789;  // Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional) 
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    -                Debug.WriteLine(result);
    +                apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerDelete: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumHistoryImageGet: " + e.Message );
                 }
             }
         }
    @@ -39409,40 +39792,48 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$seconds = 3.4; // Float | 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
    +$stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerDelete($deviceSetIndex);
    -    print_r($result);
    +    $api_instance->devicesetSpectrumHistoryImageGet($deviceSetIndex, $seconds, $bins, $rows, $startFrequency, $stopFrequency);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $seconds = 3.4; # Float | 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
    +my $stopFrequency = 789; # Long | Highest frequency to include in Hz. Default is the end of the spectrum
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerDelete(deviceSetIndex => $deviceSetIndex);
    -    print Dumper($result);
    +    $api_instance->devicesetSpectrumHistoryImageGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, rows => $rows, startFrequency => $startFrequency, stopFrequency => $stopFrequency);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39452,12 +39843,16 @@ 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)
    +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)
    +stopFrequency = 789 # Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_delete(deviceSetIndex)
    -    pprint(api_response)
    +    api_instance.deviceset_spectrum_history_image_get(deviceSetIndex, seconds=seconds, bins=bins, rows=rows, startFrequency=startFrequency, stopFrequency=stopFrequency)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: %s\n" % e)
    @@ -39473,7 +39868,7 @@ except ApiException as e: -
    +
    @@ -39497,110 +39892,148 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + -
    -
    -
    - -
    - -
    -
    -

    Status: 400 - Invalid device set index

    +
    +
    +
    + + Integer + -
    +
    +
    + + + + + + + + + + + + + + + +
    NameDescription
    seconds -

    Responses

    -

    Status: 200 - Server successfully stopped

    - +
    + How far back to look, in seconds (default 60) +
    + + + +
    rows + + +
    +
    +
    + + Integer + + +
    + At most this many rows, the most recent (default 512, up to 4000) +
    +
    +
    +
    +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + +
    + Lowest frequency to include in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to include in Hz. Default is the end of the spectrum +
    +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - The PNG image

    + +
    -
    -
    - -
    - -
    -

    Status: 404 - Device not found

    +

    Status: 400 - Invalid parameters

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Invalid index, or no history

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerGet

    +

    devicesetSpectrumReportGet

    -

    Get main spectrum websocket server status

    +

    Get the latest main spectrum measurement results


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/report

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/report"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39767,17 +40200,17 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -39786,26 +40219,26 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerGetWith:deviceSetIndex
    -              completionHandler: ^(SpectrumServer output, NSError* error) {
    +[apiInstance devicesetSpectrumReportGetWith:deviceSetIndex
    +              completionHandler: ^(GLSpectrumReport output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -39816,7 +40249,7 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
    @@ -39831,14 +40264,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerGet(deviceSetIndex, callback);
    +api.devicesetSpectrumReportGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -39847,7 +40280,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerGetExample
    +    public class devicesetSpectrumReportGetExample
         {
             public void main()
             {
    @@ -39857,12 +40290,12 @@ namespace Example
     
                 try
                 {
    -                SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +                GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumReportGet: " + e.Message );
                 }
             }
         }
    @@ -39870,7 +40303,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -39878,15 +40311,15 @@ $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumReportGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumReportGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
    @@ -39895,15 +40328,15 @@ my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumReportGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumReportGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39915,10 +40348,10 @@ api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_report_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumReportGet: %s\n" % e)
    @@ -39934,7 +40367,7 @@ except ApiException as e: -
    +
    @@ -39960,24 +40393,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return main spectrum server status

    +

    Status: 200 - On success return the results of the selected measurement

    -
    -
    +
    +
    - +
    @@ -40007,14 +40440,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40050,14 +40483,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40093,14 +40526,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerPost

    +

    devicesetSpectrumServerDelete

    -

    Start main spectrum websocket server

    +

    Stop main spectrum websocket server


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -40185,17 +40618,17 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -40204,25 +40637,25 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerPostWith:deviceSetIndex
    +[apiInstance devicesetSpectrumServerDeleteWith:deviceSetIndex
                   completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -40234,7 +40667,7 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
    @@ -40249,14 +40682,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerPost(deviceSetIndex, callback);
    +api.devicesetSpectrumServerDelete(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -40265,7 +40698,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerPostExample
    +    public class devicesetSpectrumServerDeleteExample
         {
             public void main()
             {
    @@ -40275,12 +40708,12 @@ namespace Example
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +                SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerPost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerDelete: " + e.Message );
                 }
             }
         }
    @@ -40288,7 +40721,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -40296,15 +40729,15 @@ $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerPost($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumServerDelete($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
    @@ -40313,15 +40746,15 @@ my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerPost(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumServerDelete(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerPost: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -40333,10 +40766,10 @@ api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_post(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_server_delete(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerPost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: %s\n" % e)
    @@ -40352,7 +40785,7 @@ except ApiException as e: -
    +
    @@ -40378,22 +40811,22 @@ except ApiException as e:

    Responses

    -

    Status: 200 - Server successfully started

    +

    Status: 200 - Server successfully stopped

    -
    -
    +
    +
    - +
    @@ -40425,14 +40858,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40468,14 +40901,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40511,14 +40944,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40554,14 +40987,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsGet

    +

    devicesetSpectrumServerGet

    -

    Get main spectrum settings

    +

    Get main spectrum websocket server status


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -40646,17 +41079,17 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    +            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -40665,26 +41098,26 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    +            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsGetWith:deviceSetIndex
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    +[apiInstance devicesetSpectrumServerGetWith:deviceSetIndex
    +              completionHandler: ^(SpectrumServer output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -40695,7 +41128,7 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
    @@ -40710,14 +41143,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsGet(deviceSetIndex, callback);
    +api.devicesetSpectrumServerGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -40726,7 +41159,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsGetExample
    +    public class devicesetSpectrumServerGetExample
         {
             public void main()
             {
    @@ -40736,12 +41169,12 @@ namespace Example
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    +                SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerGet: " + e.Message );
                 }
             }
         }
    @@ -40749,7 +41182,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -40757,15 +41190,15 @@ $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumServerGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
    @@ -40774,15 +41207,15 @@ my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumServerGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -40794,10 +41227,10 @@ api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_server_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerGet: %s\n" % e)
    @@ -40813,7 +41246,7 @@ except ApiException as e: -
    +
    @@ -40839,24 +41272,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return details on the main spectrum

    +

    Status: 200 - On success return main spectrum server status

    -
    -
    +
    +
    - +
    @@ -40886,14 +41319,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40929,14 +41362,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40972,14 +41405,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsPatch

    +

    devicesetSpectrumServerPost

    -

    Apply main spectrum settings differentially (no force)

    +

    Start main spectrum websocket server


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -41063,19 +41496,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -41083,30 +41515,27 @@ 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
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsPatchWith:deviceSetIndex
    -    body:body
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    +[apiInstance devicesetSpectrumServerPostWith:deviceSetIndex
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -41117,15 +41546,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {GLSpectrum} Spectrum settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -41134,14 +41561,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsPatch(deviceSetIndex, body, callback);
    +api.devicesetSpectrumServerPost(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41150,23 +41577,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsPatchExample
    +    public class devicesetSpectrumServerPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +                SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPatch: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerPost: " + e.Message );
                 }
             }
         }
    @@ -41174,42 +41600,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsPatch($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumServerPost($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsPatch(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumServerPost(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41219,13 +41643,12 @@ 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
    -body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_patch(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_server_post(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerPost: %s\n" % e)
    @@ -41241,7 +41664,7 @@ except ApiException as e: -
    +
    @@ -41263,70 +41686,71 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - +

    Responses

    +

    Status: 200 - Server successfully started

    -
    NameDescription
    body * - -
    -
    + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid device set index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid device set index or device not found

    +

    Status: 404 - Device not found

    -
    -
    +
    +
    - +
    @@ -41399,14 +41823,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -41442,14 +41866,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsPut

    +

    devicesetSpectrumSettingsGet

    -

    Apply main spectrum settings unconditionally (force)

    +

    Get main spectrum settings


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -41533,19 +41957,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -41553,29 +41976,26 @@ 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
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsPutWith:deviceSetIndex
    -    body:body
    +[apiInstance devicesetSpectrumSettingsGetWith:deviceSetIndex
                   completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -41587,15 +42007,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {GLSpectrum} Spectrum settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -41604,14 +42022,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsPut(deviceSetIndex, body, callback);
    +api.devicesetSpectrumSettingsGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41620,23 +42038,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsPutExample
    +    public class devicesetSpectrumSettingsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPut: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsGet: " + e.Message );
                 }
             }
         }
    @@ -41644,42 +42061,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsPut($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumSettingsGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsPut(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumSettingsGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41689,13 +42104,12 @@ 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
    -body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_put(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_settings_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: %s\n" % e)
    @@ -41711,7 +42125,7 @@ except ApiException as e: -
    +
    @@ -41733,68 +42147,26 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 200 - On success returns new settings values

    +

    Status: 200 - On success return details on the main spectrum

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid device set index or device not found

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -41869,14 +42241,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -41912,14 +42284,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumWorkspaceGet

    +

    devicesetSpectrumSettingsPatch

    -

    Get main spectrum UI workspace information (GUI)

    +

    Apply main spectrum settings differentially (no force)


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -42003,18 +42375,19 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -42022,27 +42395,30 @@ 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
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumWorkspaceGetWith:deviceSetIndex
    -              completionHandler: ^(WorkspaceInfo output, NSError* error) {
    +[apiInstance devicesetSpectrumSettingsPatchWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -42053,13 +42429,15 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var body = ; // {GLSpectrum} Spectrum settings to apply
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -42068,14 +42446,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumWorkspaceGet(deviceSetIndex, callback);
    +api.devicesetSpectrumSettingsPatch(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -42084,22 +42462,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumWorkspaceGetExample
    +    public class devicesetSpectrumSettingsPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspaceGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPatch: " + e.Message );
                 }
             }
         }
    @@ -42107,40 +42486,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumWorkspaceGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumSettingsPatch($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumWorkspaceGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumSettingsPatch(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -42150,12 +42531,13 @@ 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
    +body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_workspace_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_settings_patch(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: %s\n" % e)
    @@ -42171,7 +42553,937 @@ except ApiException as e: -
    +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    + + + + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - On success returns new settings values

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Invalid device set index or device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    devicesetSpectrumSettingsPut

    +

    +
    +
    +
    +

    +

    Apply main spectrum settings unconditionally (force)

    +

    +
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DeviceSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
    +        try {
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DeviceSetApi;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
    +        try {
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +GLSpectrum *body = ; // Spectrum settings to apply
    +
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
    +
    +[apiInstance devicesetSpectrumSettingsPutWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DeviceSetApi()
    +
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var body = ; // {GLSpectrum} Spectrum settings to apply
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.devicesetSpectrumSettingsPut(deviceSetIndex, body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class devicesetSpectrumSettingsPutExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
    +
    +            try
    +            {
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPut: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // GLSpectrum | Spectrum settings to apply
    +
    +try {
    +    $result = $api_instance->devicesetSpectrumSettingsPut($deviceSetIndex, $body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DeviceSetApi;
    +
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
    +
    +eval { 
    +    my $result = $api_instance->devicesetSpectrumSettingsPut(deviceSetIndex => $deviceSetIndex, body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # GLSpectrum | Spectrum settings to apply
    +
    +try: 
    +    api_response = api_instance.deviceset_spectrum_settings_put(deviceSetIndex, body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - On success returns new settings values

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Invalid device set index or device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    devicesetSpectrumWorkspaceGet

    +

    +
    +
    +
    +

    +

    Get main spectrum UI workspace information (GUI)

    +

    +
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DeviceSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        try {
    +            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DeviceSetApi;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        try {
    +            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
    +
    +[apiInstance devicesetSpectrumWorkspaceGetWith:deviceSetIndex
    +              completionHandler: ^(WorkspaceInfo output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DeviceSetApi()
    +
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.devicesetSpectrumWorkspaceGet(deviceSetIndex, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class devicesetSpectrumWorkspaceGetExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +
    +            try
    +            {
    +                WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspaceGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +
    +try {
    +    $result = $api_instance->devicesetSpectrumWorkspaceGet($deviceSetIndex);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DeviceSetApi;
    +
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +
    +eval { 
    +    my $result = $api_instance->devicesetSpectrumWorkspaceGet(deviceSetIndex => $deviceSetIndex);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +
    +try: 
    +    api_response = api_instance.deviceset_spectrum_workspace_get(deviceSetIndex)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    @@ -67394,6 +68706,306 @@ except ApiException as e:

    +
    +
    +
    +

    instanceWindowsGet

    +

    +
    +
    +
    +

    +

    List the windows of the GUI with their workspace and whether each is hidden (GUI)

    +

    +
    +
    /sdrangel/windows
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost/sdrangel/windows"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            WindowList result = apiInstance.instanceWindowsGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceWindowsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            WindowList result = apiInstance.instanceWindowsGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceWindowsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceWindowsGetWithCompletionHandler: 
    +              ^(WindowList output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceWindowsGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceWindowsGetExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +
    +            try
    +            {
    +                WindowList result = apiInstance.instanceWindowsGet();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceWindowsGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +
    +try {
    +    $result = $api_instance->instanceWindowsGet();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceWindowsGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +
    +eval { 
    +    my $result = $api_instance->instanceWindowsGet();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceWindowsGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_windows_get()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceWindowsGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - On success return the window list

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    + +
    +
    +

    Workspace

    @@ -68594,7 +70206,7 @@ $(document).ready(function() {
    - Generated 2026-09-14T12:05:38.294+02:00 + Generated 2026-09-15T17:49:43.819+02:00
    diff --git a/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml b/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml index 1571801da..3546087e7 100644 --- a/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml +++ b/sdrbase/resources/webapi/doc/swagger/include/GLSpectrum.yaml @@ -578,6 +578,112 @@ SpectrumActions: type: integer minimum: 0 +GLSpectrumHistory: + description: > + Statistics over the rows of spectrum history the GUI keeps for scrolling, reduced to a number + of bins. Powers are in dB whatever the display shows. The floor is the median of the per bin + means, and a bin counts as occupied in a row when it is above the floor by the threshold. + Rows taken with another centre frequency or sample rate are skipped and counted. + properties: + centerFrequency: + type: integer + format: int64 + bandwidth: + type: integer + description: "Width of the whole spectrum in Hz." + startFrequency: + type: integer + format: int64 + description: "Centre frequency of the first returned bin in Hz." + stopFrequency: + type: integer + format: int64 + description: "Centre frequency of the last returned bin in Hz." + binBandwidth: + type: integer + description: "Width of each returned bin in Hz." + bins: + type: integer + rows: + type: integer + description: "Rows of history used." + skippedRows: + type: integer + description: "Rows in the period that were taken with the device tuned or sampling differently, and left out." + firstTime: + type: string + description: "Time of the oldest row used, ISO 8601." + lastTime: + type: string + description: "Time of the newest row used, ISO 8601." + seconds: + type: number + format: float + description: "Span between the oldest and newest rows used." + floorDb: + type: number + format: float + description: "The measured noise floor." + thresholdDb: + type: number + format: float + description: "The level above which a bin counts as occupied." + maxDb: + type: array + items: + type: number + format: float + description: "Per bin maximum over the rows." + meanDb: + type: array + items: + type: number + format: float + description: "Per bin mean over the rows." + occupancy: + type: array + items: + type: number + format: float + description: "Per bin fraction of rows in which the bin was above the threshold, 0 to 1." + signalCount: + type: integer + signals: + type: array + items: + $ref: "#/SpectrumHistorySignal" + description: "Runs of adjacent bins whose maximum rose above the threshold." +SpectrumHistorySignal: + description: A signal found in the spectrum history + properties: + frequency: + type: integer + format: int64 + description: "Frequency of the strongest bin in Hz." + startFrequency: + type: integer + format: int64 + description: "Lower edge in Hz." + stopFrequency: + type: integer + format: int64 + description: "Upper edge in Hz." + bandwidth: + type: integer + description: "Width in Hz, to the bin." + peakDb: + type: number + format: float + dutyCycle: + type: number + format: float + description: "Fraction of rows in which any bin of the signal was above the threshold, 0 to 1: 1 for a continuous carrier, small for a burst." + firstSeen: + type: string + description: "Time of the first row it was up in, ISO 8601." + lastSeen: + type: string + description: "Time of the last row it was up in, ISO 8601." GLSpectrumData: description: > A copy of the current power spectrum, reduced to the number of bins asked for so that the diff --git a/sdrbase/resources/webapi/doc/swagger/swagger.yaml b/sdrbase/resources/webapi/doc/swagger/swagger.yaml index 9caa18ebf..8ffad8fef 100644 --- a/sdrbase/resources/webapi/doc/swagger/swagger.yaml +++ b/sdrbase/resources/webapi/doc/swagger/swagger.yaml @@ -1097,6 +1097,24 @@ paths: "501": $ref: "#/responses/Response_501" + /sdrangel/windows: + x-swagger-router-controller: instance + get: + description: List the windows of the GUI with their workspace and whether each is hidden (GUI) + operationId: instanceWindowsGet + tags: + - Instance + responses: + "200": + description: On success return the window list + schema: + $ref: "#/definitions/WindowList" + "500": + description: Error + schema: + $ref: "#/definitions/ErrorResponse" + "501": + description: Function not implemented /sdrangel/workspace/{workspaceIndex}/actions: x-swagger-router-controller: instance post: @@ -1408,6 +1426,127 @@ paths: "501": $ref: "#/responses/Response_501" + /sdrangel/deviceset/{deviceSetIndex}/spectrum/history: + x-swagger-router-controller: deviceset + get: + description: > + Statistics over the spectrum history the GUI keeps for scrolling: per bin maximum, mean and + occupancy over a period, and the signals found. Only rows taken with the device tuned and + sampling as it is now are used. Needs scrolling enabled in the spectrum settings (scrollBar, + scrollLength); the server keeps no history + operationId: devicesetSpectrumHistoryGet + tags: + - DeviceSet + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: seconds + in: query + description: How far back to look, in seconds (default 60) + required: false + type: number + format: float + - name: bins + in: query + description: Number of bins to reduce the spectrum to, 1 to 4096 (default 128) + required: false + type: integer + - name: startFrequency + in: query + description: Lowest frequency to include in Hz. Default is the start of the spectrum + required: false + type: integer + format: int64 + - name: stopFrequency + in: query + description: Highest frequency to include in Hz. Default is the end of the spectrum + required: false + type: integer + format: int64 + - name: threshold + 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 + responses: + "200": + description: On success return the statistics + schema: + $ref: "/doc/swagger/include/GLSpectrum.yaml#/GLSpectrumHistory" + "400": + description: Invalid parameters + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index, or no history + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" + /sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image: + x-swagger-router-controller: deviceset + get: + description: > + The spectrum history as a greyscale PNG waterfall, one pixel per bin across and one per row + down with the newest row at the bottom, black a little below the noise floor and white at + the strongest bin. The frequency and time extents come back in X-Spectrum-History headers + and in the JSON form of the same call + operationId: devicesetSpectrumHistoryImageGet + tags: + - DeviceSet + produces: + - image/png + parameters: + - in: path + name: deviceSetIndex + type: integer + required: true + description: Index of device set in the device set list + - name: seconds + in: query + description: How far back to look, in seconds (default 60) + required: false + type: number + format: float + - name: bins + in: query + description: Width in pixels, 1 to 4096 (default 512) + required: false + type: integer + - name: rows + in: query + description: At most this many rows, the most recent (default 512, up to 4000) + required: false + type: integer + - name: startFrequency + in: query + description: Lowest frequency to include in Hz. Default is the start of the spectrum + required: false + type: integer + format: int64 + - name: stopFrequency + in: query + description: Highest frequency to include in Hz. Default is the end of the spectrum + required: false + type: integer + format: int64 + responses: + "200": + description: The PNG image + "400": + description: Invalid parameters + schema: + $ref: "#/definitions/ErrorResponse" + "404": + description: Invalid index, or no history + schema: + $ref: "#/definitions/ErrorResponse" + "500": + $ref: "#/responses/Response_500" /sdrangel/deviceset/{deviceSetIndex}/spectrum/server: x-swagger-router-controller: deviceset get: @@ -3262,13 +3401,42 @@ definitions: $ref: "#/definitions/Channel" WorkspaceInfo: - description: "Workspace information" - required: - - index + description: "Where a window is and whether it is shown (GUI). On a PUT either field may be given alone: index moves the window, hidden hides or shows it" properties: index: description: index of workspace in the list of workspaces type: integer + hidden: + description: "1 when the window is hidden, 0 when it is shown. Showing a window also raises it and shows the workspace holding it" + type: integer + WindowList: + description: "Every device, spectrum, channel and feature window of the GUI" + properties: + windowCount: + type: integer + windows: + type: array + items: + $ref: "#/definitions/WindowInfo" + WindowInfo: + description: "One window of the GUI" + properties: + kind: + description: "device, spectrum, channel or feature" + type: string + deviceSetIndex: + description: "Index of the device set, for a device, spectrum or channel window" + type: integer + index: + description: "Channel index within the device set, or feature index; absent for a device or spectrum window" + type: integer + title: + type: string + workspaceIndex: + type: integer + hidden: + description: "1 when the window is hidden, 0 when it is shown" + type: integer WorkspaceActions: description: "Actions on a workspace" diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 37df228fa..fb8997846 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -10519,6 +10519,101 @@ margin-bottom: 20px; } }, "description" : "A copy of the current power spectrum, reduced to the number of bins asked for so that the answer stays a sensible size whatever the FFT size. The spectrum is only computed while something is consuming it, a spectrum window or a websocket client, so updated says how old these values are and is absent if none has been produced yet.\n" +}; + defs.GLSpectrumHistory = { + "properties" : { + "centerFrequency" : { + "type" : "integer", + "format" : "int64" + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width of the whole spectrum in Hz." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the first returned bin in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Centre frequency of the last returned bin in Hz." + }, + "binBandwidth" : { + "type" : "integer", + "description" : "Width of each returned bin in Hz." + }, + "bins" : { + "type" : "integer" + }, + "rows" : { + "type" : "integer", + "description" : "Rows of history used." + }, + "skippedRows" : { + "type" : "integer", + "description" : "Rows in the period that were taken with the device tuned or sampling differently, and left out." + }, + "firstTime" : { + "type" : "string", + "description" : "Time of the oldest row used, ISO 8601." + }, + "lastTime" : { + "type" : "string", + "description" : "Time of the newest row used, ISO 8601." + }, + "seconds" : { + "type" : "number", + "format" : "float", + "description" : "Span between the oldest and newest rows used." + }, + "floorDb" : { + "type" : "number", + "format" : "float", + "description" : "The measured noise floor." + }, + "thresholdDb" : { + "type" : "number", + "format" : "float", + "description" : "The level above which a bin counts as occupied." + }, + "maxDb" : { + "type" : "array", + "description" : "Per bin maximum over the rows.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "meanDb" : { + "type" : "array", + "description" : "Per bin mean over the rows.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "occupancy" : { + "type" : "array", + "description" : "Per bin fraction of rows in which the bin was above the threshold, 0 to 1.", + "items" : { + "type" : "number", + "format" : "float" + } + }, + "signalCount" : { + "type" : "integer" + }, + "signals" : { + "type" : "array", + "description" : "Runs of adjacent bins whose maximum rose above the threshold.", + "items" : { + "$ref" : "#/SpectrumHistorySignal" + } + } + }, + "description" : "Statistics over the rows of spectrum history the GUI keeps for scrolling, reduced to a number of bins. Powers are in dB whatever the display shows. The floor is the median of the per bin means, and a bin counts as occupied in a row when it is above the floor by the threshold. Rows taken with another centre frequency or sample rate are skipped and counted.\n" }; defs.GLSpectrumReport = { "properties" : { @@ -22208,6 +22303,47 @@ margin-bottom: 20px; } }, "description" : "Spectrum histogram marker settings" +}; + defs.SpectrumHistorySignal = { + "properties" : { + "frequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Frequency of the strongest bin in Hz." + }, + "startFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Lower edge in Hz." + }, + "stopFrequency" : { + "type" : "integer", + "format" : "int64", + "description" : "Upper edge in Hz." + }, + "bandwidth" : { + "type" : "integer", + "description" : "Width in Hz, to the bin." + }, + "peakDb" : { + "type" : "number", + "format" : "float" + }, + "dutyCycle" : { + "type" : "number", + "format" : "float", + "description" : "Fraction of rows in which any bin of the signal was above the threshold, 0 to 1: 1 for a continuous carrier, small for a burst." + }, + "firstSeen" : { + "type" : "string", + "description" : "Time of the first row it was up in, ISO 8601." + }, + "lastSeen" : { + "type" : "string", + "description" : "Time of the last row it was up in, ISO 8601." + } + }, + "description" : "A signal found in the spectrum history" }; defs.SpectrumMemorySettings = { "properties" : { @@ -24580,6 +24716,47 @@ margin-bottom: 20px; } }, "description" : "WFMMod" +}; + defs.WindowInfo = { + "properties" : { + "kind" : { + "type" : "string", + "description" : "device, spectrum, channel or feature" + }, + "deviceSetIndex" : { + "type" : "integer", + "description" : "Index of the device set, for a device, spectrum or channel window" + }, + "index" : { + "type" : "integer", + "description" : "Channel index within the device set, or feature index; absent for a device or spectrum window" + }, + "title" : { + "type" : "string" + }, + "workspaceIndex" : { + "type" : "integer" + }, + "hidden" : { + "type" : "integer", + "description" : "1 when the window is hidden, 0 when it is shown" + } + }, + "description" : "One window of the GUI" +}; + defs.WindowList = { + "properties" : { + "windowCount" : { + "type" : "integer" + }, + "windows" : { + "type" : "array", + "items" : { + "$ref" : "#/definitions/WindowInfo" + } + } + }, + "description" : "Every device, spectrum, channel and feature window of the GUI" }; defs.WorkspaceActions = { "required" : [ "arrange" ], @@ -24593,14 +24770,17 @@ margin-bottom: 20px; "description" : "Actions on a workspace" }; defs.WorkspaceInfo = { - "required" : [ "index" ], "properties" : { "index" : { "type" : "integer", "description" : "index of workspace in the list of workspaces" + }, + "hidden" : { + "type" : "integer", + "description" : "1 when the window is hidden, 0 when it is shown. Showing a window also raises it and shows the workspace holding it" } }, - "description" : "Workspace information" + "description" : "Where a window is and whether it is shown (GUI). On a PUT either field may be given alone: index moves the window, hidden hides or shows it" }; defs.XtrxInputReport = { "properties" : { @@ -25211,6 +25391,12 @@ margin-bottom: 20px;
  • devicesetSpectrumDataGet
  • +
  • + devicesetSpectrumHistoryGet +
  • +
  • + devicesetSpectrumHistoryImageGet +
  • devicesetSpectrumReportGet
  • @@ -25414,6 +25600,9 @@ margin-bottom: 20px;
  • instanceSummary
  • +
  • + instanceWindowsGet +
  • instanceWorkspaceAdd @@ -38838,41 +39027,42 @@ except ApiException as e:
    -
    -
    +
    +
    -

    devicesetSpectrumReportGet

    +

    devicesetSpectrumHistoryGet

    -

    Get the latest main spectrum measurement results

    +

    Statistics over the spectrum history the GUI keeps for scrolling: per bin maximum, mean and occupancy over a period, and the signals found. Only rows taken with the device tuned and sampling as it is now are used. Needs scrolling enabled in the spectrum settings (scrollBar, scrollLength); the server keeps no history +


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/report
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/history

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/report"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/history?seconds=&bins=&startFrequency=&stopFrequency=&threshold="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -38887,18 +39077,23 @@ 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 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)
             try {
    -            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
    +            GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -38906,27 +39101,42 @@ 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 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)
             try {
    -            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
    +            GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    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 *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)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumReportGetWith:deviceSetIndex
    -              completionHandler: ^(GLSpectrumReport output, NSError* error) {
    +[apiInstance devicesetSpectrumHistoryGetWith:deviceSetIndex
    +    seconds:seconds
    +    bins:bins
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +    threshold:threshold
    +              completionHandler: ^(GLSpectrumHistory output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -38937,13 +39147,20 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     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)
    +  '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)
    +};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -38952,14 +39169,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumReportGet(deviceSetIndex, callback);
    +api.devicesetSpectrumHistoryGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -38968,22 +39185,27 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumReportGetExample
    +    public class devicesetSpectrumHistoryGetExample
         {
             public void main()
             {
                 
                 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 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) 
     
                 try
                 {
    -                GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
    +                GLSpectrumHistory result = apiInstance.devicesetSpectrumHistoryGet(deviceSetIndex, seconds, bins, startFrequency, stopFrequency, threshold);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumReportGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumHistoryGet: " + e.Message );
                 }
             }
         }
    @@ -38991,40 +39213,50 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$seconds = 3.4; // Float | 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)
     
     try {
    -    $result = $api_instance->devicesetSpectrumReportGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumHistoryGet($deviceSetIndex, $seconds, $bins, $startFrequency, $stopFrequency, $threshold);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumReportGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $seconds = 3.4; # Float | 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)
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumReportGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumHistoryGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, startFrequency => $startFrequency, stopFrequency => $stopFrequency, threshold => $threshold);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumReportGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39034,12 +39266,17 @@ 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)
    +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)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_report_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_history_get(deviceSetIndex, seconds=seconds, bins=bins, startFrequency=startFrequency, stopFrequency=stopFrequency, threshold=threshold)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumReportGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumHistoryGet: %s\n" % e)
    @@ -39055,7 +39292,7 @@ except ApiException as e:
  • -
    +
    @@ -39079,26 +39316,145 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    NameDescription
    seconds + + +
    +
    +
    + + Float + + + (float) + + +
    + How far back to look, in seconds (default 60) +
    +
    +
    +
    +
    bins + + +
    +
    +
    + + Integer + + +
    + Number of bins to reduce the spectrum to, 1 to 4096 (default 128) +
    +
    +
    +
    +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Lowest frequency to include in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to include in Hz. Default is the end of the spectrum +
    +
    +
    +
    +
    threshold + + +
    +
    +
    + + Float + + + (float) + + +
    + How far above the measured floor a bin must rise to count as occupied, in dB (default 6) +
    +
    +
    +
    +

    Responses

    -

    Status: 200 - On success return the results of the selected measurement

    +

    Status: 200 - On success return the statistics

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid index

    +

    Status: 400 - Invalid parameters

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Invalid index, or no history

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerDelete

    +

    devicesetSpectrumHistoryImageGet

    -

    Stop main spectrum websocket server

    +

    The spectrum history as a greyscale PNG waterfall, one pixel per bin across and one per row down with the newest row at the bottom, black a little below the noise floor and white at the strongest bin. The frequency and time extents come back in X-Spectrum-History headers and in the JSON form of the same call +


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image

    Usage and SDK Samples

    -
    -
    curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/history/image?seconds=&bins=&rows=&startFrequency=&stopFrequency="
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39305,18 +39662,22 @@ 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 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
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    -            System.out.println(result);
    +            apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryImageGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -39324,30 +39685,41 @@ 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 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
    +        Long stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    -            System.out.println(result);
    +            apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumHistoryImageGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    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 *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)
    +Long *stopFrequency = 789; // Highest frequency to include in Hz. Default is the end of the spectrum (optional)
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerDeleteWith:deviceSetIndex
    -              completionHandler: ^(SuccessResponse output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    +[apiInstance devicesetSpectrumHistoryImageGetWith:deviceSetIndex
    +    seconds:seconds
    +    bins:bins
    +    rows:rows
    +    startFrequency:startFrequency
    +    stopFrequency:stopFrequency
    +              completionHandler: ^(NSError* error) {
                                 if (error) {
                                     NSLog(@"Error: %@", error);
                                 }
    @@ -39355,29 +39727,36 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     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)
    +  '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
    +  'stopFrequency': 789 // {Long} Highest frequency to include in Hz. Default is the end of the spectrum
    +};
     
     var callback = function(error, data, response) {
       if (error) {
         console.error(error);
       } else {
    -    console.log('API called successfully. Returned data: ' + data);
    +    console.log('API called successfully.');
       }
     };
    -api.devicesetSpectrumServerDelete(deviceSetIndex, callback);
    +api.devicesetSpectrumHistoryImageGet(deviceSetIndex, opts, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -39386,22 +39765,26 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerDeleteExample
    +    public class devicesetSpectrumHistoryImageGetExample
         {
             public void main()
             {
                 
                 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 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) 
    +            var stopFrequency = 789;  // Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional) 
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
    -                Debug.WriteLine(result);
    +                apiInstance.devicesetSpectrumHistoryImageGet(deviceSetIndex, seconds, bins, rows, startFrequency, stopFrequency);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerDelete: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumHistoryImageGet: " + e.Message );
                 }
             }
         }
    @@ -39409,40 +39792,48 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$seconds = 3.4; // Float | 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
    +$stopFrequency = 789; // Long | Highest frequency to include in Hz. Default is the end of the spectrum
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerDelete($deviceSetIndex);
    -    print_r($result);
    +    $api_instance->devicesetSpectrumHistoryImageGet($deviceSetIndex, $seconds, $bins, $rows, $startFrequency, $stopFrequency);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $seconds = 3.4; # Float | 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
    +my $stopFrequency = 789; # Long | Highest frequency to include in Hz. Default is the end of the spectrum
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerDelete(deviceSetIndex => $deviceSetIndex);
    -    print Dumper($result);
    +    $api_instance->devicesetSpectrumHistoryImageGet(deviceSetIndex => $deviceSetIndex, seconds => $seconds, bins => $bins, rows => $rows, startFrequency => $startFrequency, stopFrequency => $stopFrequency);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39452,12 +39843,16 @@ 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)
    +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)
    +stopFrequency = 789 # Long | Highest frequency to include in Hz. Default is the end of the spectrum (optional)
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_delete(deviceSetIndex)
    -    pprint(api_response)
    +    api_instance.deviceset_spectrum_history_image_get(deviceSetIndex, seconds=seconds, bins=bins, rows=rows, startFrequency=startFrequency, stopFrequency=stopFrequency)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumHistoryImageGet: %s\n" % e)
    @@ -39473,7 +39868,7 @@ except ApiException as e:
    -
    +
    @@ -39497,110 +39892,148 @@ except ApiException as e: +
    Query parameters
    + + + + + + + + -
    -
    -
    - -
    - -
    -
    -

    Status: 400 - Invalid device set index

    +
    +
    +
    + + Integer + -
    +
    +
    + + + + + + + + + + + + + + + +
    NameDescription
    seconds -

    Responses

    -

    Status: 200 - Server successfully stopped

    - +
    + How far back to look, in seconds (default 60) +
    + + + +
    rows + + +
    +
    +
    + + Integer + + +
    + At most this many rows, the most recent (default 512, up to 4000) +
    +
    +
    +
    +
    startFrequency + + +
    +
    +
    + + Long + + + (int64) + +
    + Lowest frequency to include in Hz. Default is the start of the spectrum +
    +
    +
    +
    +
    stopFrequency + + +
    +
    +
    + + Long + + + (int64) + + +
    + Highest frequency to include in Hz. Default is the end of the spectrum +
    +
    +
    +
    +
    + +

    Responses

    +

    Status: 200 - The PNG image

    + +
    -
    -
    - -
    - -
    -

    Status: 404 - Device not found

    +

    Status: 400 - Invalid parameters

    -
    -
    +
    +
    - +
    -

    Status: 500 - Error

    +

    Status: 404 - Invalid index, or no history

    -
    -
    +
    +
    - +
    -

    Status: 501 - Function not implemented

    +

    Status: 500 - Error

    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerGet

    +

    devicesetSpectrumReportGet

    -

    Get main spectrum websocket server status

    +

    Get the latest main spectrum measurement results


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/report

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/report"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -39767,17 +40200,17 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -39786,26 +40219,26 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +            GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumReportGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerGetWith:deviceSetIndex
    -              completionHandler: ^(SpectrumServer output, NSError* error) {
    +[apiInstance devicesetSpectrumReportGetWith:deviceSetIndex
    +              completionHandler: ^(GLSpectrumReport output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -39816,7 +40249,7 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
    @@ -39831,14 +40264,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerGet(deviceSetIndex, callback);
    +api.devicesetSpectrumReportGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -39847,7 +40280,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerGetExample
    +    public class devicesetSpectrumReportGetExample
         {
             public void main()
             {
    @@ -39857,12 +40290,12 @@ namespace Example
     
                 try
                 {
    -                SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
    +                GLSpectrumReport result = apiInstance.devicesetSpectrumReportGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumReportGet: " + e.Message );
                 }
             }
         }
    @@ -39870,7 +40303,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -39878,15 +40311,15 @@ $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumReportGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumReportGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
    @@ -39895,15 +40328,15 @@ my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumReportGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumReportGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -39915,10 +40348,10 @@ api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_report_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumReportGet: %s\n" % e)
    @@ -39934,7 +40367,7 @@ except ApiException as e:
    -
    +
    @@ -39960,24 +40393,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return main spectrum server status

    +

    Status: 200 - On success return the results of the selected measurement

    -
    -
    +
    +
    - +
    @@ -40007,14 +40440,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40050,14 +40483,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40093,14 +40526,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumServerPost

    +

    devicesetSpectrumServerDelete

    -

    Start main spectrum websocket server

    +

    Stop main spectrum websocket server


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    +
    +
    curl -X DELETE "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -40185,17 +40618,17 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -40204,25 +40637,25 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerDelete");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumServerPostWith:deviceSetIndex
    +[apiInstance devicesetSpectrumServerDeleteWith:deviceSetIndex
                   completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -40234,7 +40667,7 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
    @@ -40249,14 +40682,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumServerPost(deviceSetIndex, callback);
    +api.devicesetSpectrumServerDelete(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -40265,7 +40698,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumServerPostExample
    +    public class devicesetSpectrumServerDeleteExample
         {
             public void main()
             {
    @@ -40275,12 +40708,12 @@ namespace Example
     
                 try
                 {
    -                SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
    +                SuccessResponse result = apiInstance.devicesetSpectrumServerDelete(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerPost: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerDelete: " + e.Message );
                 }
             }
         }
    @@ -40288,7 +40721,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -40296,15 +40729,15 @@ $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->devicesetSpectrumServerPost($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumServerDelete($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
    @@ -40313,15 +40746,15 @@ my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumServerPost(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumServerDelete(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerPost: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -40333,10 +40766,10 @@ api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_server_post(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_server_delete(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumServerPost: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerDelete: %s\n" % e)
    @@ -40352,7 +40785,7 @@ except ApiException as e:
    -
    +
    @@ -40378,22 +40811,22 @@ except ApiException as e:

    Responses

    -

    Status: 200 - Server successfully started

    +

    Status: 200 - Server successfully stopped

    -
    -
    +
    +
    - +
    @@ -40425,14 +40858,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40468,14 +40901,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40511,14 +40944,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40554,14 +40987,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsGet

    +

    devicesetSpectrumServerGet

    -

    Get main spectrum settings

    +

    Get main spectrum websocket server status


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -40646,17 +41079,17 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    +            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -40665,26 +41098,26 @@ public class DeviceSetApiExample {
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    +            SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsGetWith:deviceSetIndex
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    +[apiInstance devicesetSpectrumServerGetWith:deviceSetIndex
    +              completionHandler: ^(SpectrumServer output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -40695,7 +41128,7 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
    @@ -40710,14 +41143,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsGet(deviceSetIndex, callback);
    +api.devicesetSpectrumServerGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -40726,7 +41159,7 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsGetExample
    +    public class devicesetSpectrumServerGetExample
         {
             public void main()
             {
    @@ -40736,12 +41169,12 @@ namespace Example
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
    +                SpectrumServer result = apiInstance.devicesetSpectrumServerGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerGet: " + e.Message );
                 }
             }
         }
    @@ -40749,7 +41182,7 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -40757,15 +41190,15 @@ $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumServerGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
    @@ -40774,15 +41207,15 @@ my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumServerGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -40794,10 +41227,10 @@ api_instance = swagger_sdrangel.DeviceSetApi()
     deviceSetIndex = 56 # Integer | Index of device set in the device set list
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_server_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerGet: %s\n" % e)
    @@ -40813,7 +41246,7 @@ except ApiException as e:
    -
    +
    @@ -40839,24 +41272,24 @@ except ApiException as e:

    Responses

    -

    Status: 200 - On success return details on the main spectrum

    +

    Status: 200 - On success return main spectrum server status

    -
    -
    +
    +
    - +
    @@ -40886,14 +41319,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40929,14 +41362,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +
    @@ -40972,14 +41405,14 @@ except ApiException as e:
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsPatch

    +

    devicesetSpectrumServerPost

    -

    Apply main spectrum settings differentially (no force)

    +

    Start main spectrum websocket server


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/server

    Usage and SDK Samples

    -
    -
    curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X POST "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/server"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -41063,19 +41496,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -41083,30 +41515,27 @@ 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
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +            SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumServerPost");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsPatchWith:deviceSetIndex
    -    body:body
    -              completionHandler: ^(GLSpectrum output, NSError* error) {
    +[apiInstance devicesetSpectrumServerPostWith:deviceSetIndex
    +              completionHandler: ^(SuccessResponse output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -41117,15 +41546,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {GLSpectrum} Spectrum settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -41134,14 +41561,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsPatch(deviceSetIndex, body, callback);
    +api.devicesetSpectrumServerPost(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41150,23 +41577,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsPatchExample
    +    public class devicesetSpectrumServerPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
    +                SuccessResponse result = apiInstance.devicesetSpectrumServerPost(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPatch: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumServerPost: " + e.Message );
                 }
             }
         }
    @@ -41174,42 +41600,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsPatch($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumServerPost($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumServerPost: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsPatch(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumServerPost(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumServerPost: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41219,13 +41643,12 @@ 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
    -body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_patch(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_server_post(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumServerPost: %s\n" % e)
    @@ -41241,7 +41664,7 @@ except ApiException as e:
    -
    +
    @@ -41263,70 +41686,71 @@ except ApiException as e:
    -
    Body parameters
    - - - - - - - - +

    Responses

    +

    Status: 200 - Server successfully started

    -
    NameDescription
    body * - -
    -
    + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid device set index

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid device set index or device not found

    +

    Status: 404 - Device not found

    -
    -
    +
    +
    - +
    @@ -41399,14 +41823,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -41442,14 +41866,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumSettingsPut

    +

    devicesetSpectrumSettingsGet

    -

    Apply main spectrum settings unconditionally (force)

    +

    Get main spectrum settings


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -41533,19 +41957,18 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -41553,29 +41976,26 @@ 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
    -        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsGet");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    -GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumSettingsPutWith:deviceSetIndex
    -    body:body
    +[apiInstance devicesetSpectrumSettingsGetWith:deviceSetIndex
                   completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
    @@ -41587,15 +42007,13 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    -var body = ; // {GLSpectrum} Spectrum settings to apply
    -
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -41604,14 +42022,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumSettingsPut(deviceSetIndex, body, callback);
    +api.devicesetSpectrumSettingsGet(deviceSetIndex, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -41620,23 +42038,22 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumSettingsPutExample
    +    public class devicesetSpectrumSettingsGetExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    -            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsGet(deviceSetIndex);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPut: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsGet: " + e.Message );
                 }
             }
         }
    @@ -41644,42 +42061,40 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    -$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumSettingsPut($deviceSetIndex, $body);
    +    $result = $api_instance->devicesetSpectrumSettingsGet($deviceSetIndex);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    -my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumSettingsPut(deviceSetIndex => $deviceSetIndex, body => $body);
    +    my $result = $api_instance->devicesetSpectrumSettingsGet(deviceSetIndex => $deviceSetIndex);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -41689,13 +42104,12 @@ 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
    -body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_settings_put(deviceSetIndex, body)
    +    api_response = api_instance.deviceset_spectrum_settings_get(deviceSetIndex)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsGet: %s\n" % e)
    @@ -41711,7 +42125,7 @@ except ApiException as e: -
    +
    @@ -41733,68 +42147,26 @@ except ApiException as e: -
    Body parameters
    - - - - - - - - - -
    NameDescription
    body * - - - -
    -

    Responses

    -

    Status: 200 - On success returns new settings values

    +

    Status: 200 - On success return details on the main spectrum

    -
    -
    +
    +
    - +
    -

    Status: 404 - Invalid device set index or device not found

    +

    Status: 404 - Invalid index

    -
    -
    +
    +
    - +
    @@ -41869,14 +42241,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +
    @@ -41912,14 +42284,14 @@ $(document).ready(function() {
    -
    -
    +
    +
    - +

    -
    -
    +
    +
    -

    devicesetSpectrumWorkspaceGet

    +

    devicesetSpectrumSettingsPatch

    -

    Get main spectrum UI workspace information (GUI)

    +

    Apply main spectrum settings differentially (no force)


    -
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings

    Usage and SDK Samples

    -
    -
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    +
    +
    curl -X PATCH "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    -
    +
    import SWGSDRangel.*;
     import SWGSDRangel.auth.*;
     import SWGSDRangel.model.*;
    @@ -42003,18 +42375,19 @@ public class DeviceSetApiExample {
             
             DeviceSetApi apiInstance = new DeviceSetApi();
             Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    import SWGSDRangel.api.DeviceSetApi;
     
     public class DeviceSetApiExample {
    @@ -42022,27 +42395,30 @@ 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
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
             try {
    -            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPatch");
                 e.printStackTrace();
             }
         }
     }
    -
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +GLSpectrum *body = ; // Spectrum settings to apply
     
     DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -[apiInstance devicesetSpectrumWorkspaceGetWith:deviceSetIndex
    -              completionHandler: ^(WorkspaceInfo output, NSError* error) {
    +[apiInstance devicesetSpectrumSettingsPatchWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -42053,13 +42429,15 @@ DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
     
    -
    +
    var SdRangel = require('sd_rangel');
     
     var api = new SdRangel.DeviceSetApi()
     
     var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
     
    +var body = ; // {GLSpectrum} Spectrum settings to apply
    +
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -42068,14 +42446,14 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.devicesetSpectrumWorkspaceGet(deviceSetIndex, callback);
    +api.devicesetSpectrumSettingsPatch(deviceSetIndex, body, callback);
     
    - -
    +
    using System;
     using System.Diagnostics;
     using SWGSDRangel.Api;
    @@ -42084,22 +42462,23 @@ using SWGSDRangel.Model;
     
     namespace Example
     {
    -    public class devicesetSpectrumWorkspaceGetExample
    +    public class devicesetSpectrumSettingsPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new DeviceSetApi();
                 var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
     
                 try
                 {
    -                WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPatch(deviceSetIndex, body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspaceGet: " + e.Message );
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPatch: " + e.Message );
                 }
             }
         }
    @@ -42107,40 +42486,42 @@ namespace Example
     
    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
     $api_instance = new Swagger\Client\Api\DeviceSetApi();
     $deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // GLSpectrum | Spectrum settings to apply
     
     try {
    -    $result = $api_instance->devicesetSpectrumWorkspaceGet($deviceSetIndex);
    +    $result = $api_instance->devicesetSpectrumSettingsPatch($deviceSetIndex, $body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: ', $e->getMessage(), PHP_EOL;
     }
     ?>
    -
    +
    use Data::Dumper;
     use SWGSDRangel::Configuration;
     use SWGSDRangel::DeviceSetApi;
     
     my $api_instance = SWGSDRangel::DeviceSetApi->new();
     my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
     
     eval { 
    -    my $result = $api_instance->devicesetSpectrumWorkspaceGet(deviceSetIndex => $deviceSetIndex);
    +    my $result = $api_instance->devicesetSpectrumSettingsPatch(deviceSetIndex => $deviceSetIndex, body => $body);
         print Dumper($result);
     };
     if ($@) {
    -    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: $@\n";
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: $@\n";
     }
    -
    +
    from __future__ import print_statement
     import time
     import swagger_sdrangel
    @@ -42150,12 +42531,13 @@ 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
    +body =  # GLSpectrum | Spectrum settings to apply
     
     try: 
    -    api_response = api_instance.deviceset_spectrum_workspace_get(deviceSetIndex)
    +    api_response = api_instance.deviceset_spectrum_settings_patch(deviceSetIndex, body)
         pprint(api_response)
     except ApiException as e:
    -    print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: %s\n" % e)
    + print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPatch: %s\n" % e)
    @@ -42171,7 +42553,937 @@ except ApiException as e: -
    +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    + + + + + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - On success returns new settings values

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Invalid device set index or device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    devicesetSpectrumSettingsPut

    +

    +
    +
    +
    +

    +

    Apply main spectrum settings unconditionally (force)

    +

    +
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/settings
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PUT "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/settings"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DeviceSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
    +        try {
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DeviceSetApi;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        GLSpectrum body = ; // GLSpectrum | Spectrum settings to apply
    +        try {
    +            GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumSettingsPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +GLSpectrum *body = ; // Spectrum settings to apply
    +
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
    +
    +[apiInstance devicesetSpectrumSettingsPutWith:deviceSetIndex
    +    body:body
    +              completionHandler: ^(GLSpectrum output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DeviceSetApi()
    +
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +var body = ; // {GLSpectrum} Spectrum settings to apply
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.devicesetSpectrumSettingsPut(deviceSetIndex, body, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class devicesetSpectrumSettingsPutExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +            var body = new GLSpectrum(); // GLSpectrum | Spectrum settings to apply
    +
    +            try
    +            {
    +                GLSpectrum result = apiInstance.devicesetSpectrumSettingsPut(deviceSetIndex, body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumSettingsPut: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +$body = ; // GLSpectrum | Spectrum settings to apply
    +
    +try {
    +    $result = $api_instance->devicesetSpectrumSettingsPut($deviceSetIndex, $body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DeviceSetApi;
    +
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +my $body = SWGSDRangel::Object::GLSpectrum->new(); # GLSpectrum | Spectrum settings to apply
    +
    +eval { 
    +    my $result = $api_instance->devicesetSpectrumSettingsPut(deviceSetIndex => $deviceSetIndex, body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +body =  # GLSpectrum | Spectrum settings to apply
    +
    +try: 
    +    api_response = api_instance.deviceset_spectrum_settings_put(deviceSetIndex, body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DeviceSetApi->devicesetSpectrumSettingsPut: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    +
    +
    + + Integer + + +
    + Index of device set in the device set list +
    +
    +
    + Required +
    +
    +
    +
    + + +
    Body parameters
    + + + + + + + + + +
    NameDescription
    body * + + + +
    +
    + + + +

    Responses

    +

    Status: 200 - On success returns new settings values

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - Invalid device set index or device not found

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    +
    + +
    + +
    +
    + +
    +
    +
    +
    +
    +
    +

    devicesetSpectrumWorkspaceGet

    +

    +
    +
    +
    +

    +

    Get main spectrum UI workspace information (GUI)

    +

    +
    +
    /sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost/sdrangel/deviceset/{deviceSetIndex}/spectrum/workspace"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.DeviceSetApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        try {
    +            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.DeviceSetApi;
    +
    +public class DeviceSetApiExample {
    +
    +    public static void main(String[] args) {
    +        DeviceSetApi apiInstance = new DeviceSetApi();
    +        Integer deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +        try {
    +            WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DeviceSetApi#devicesetSpectrumWorkspaceGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Integer *deviceSetIndex = 56; // Index of device set in the device set list
    +
    +DeviceSetApi *apiInstance = [[DeviceSetApi alloc] init];
    +
    +[apiInstance devicesetSpectrumWorkspaceGetWith:deviceSetIndex
    +              completionHandler: ^(WorkspaceInfo output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DeviceSetApi()
    +
    +var deviceSetIndex = 56; // {Integer} Index of device set in the device set list
    +
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.devicesetSpectrumWorkspaceGet(deviceSetIndex, callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class devicesetSpectrumWorkspaceGetExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DeviceSetApi();
    +            var deviceSetIndex = 56;  // Integer | Index of device set in the device set list
    +
    +            try
    +            {
    +                WorkspaceInfo result = apiInstance.devicesetSpectrumWorkspaceGet(deviceSetIndex);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DeviceSetApi.devicesetSpectrumWorkspaceGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\DeviceSetApi();
    +$deviceSetIndex = 56; // Integer | Index of device set in the device set list
    +
    +try {
    +    $result = $api_instance->devicesetSpectrumWorkspaceGet($deviceSetIndex);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::DeviceSetApi;
    +
    +my $api_instance = SWGSDRangel::DeviceSetApi->new();
    +my $deviceSetIndex = 56; # Integer | Index of device set in the device set list
    +
    +eval { 
    +    my $result = $api_instance->devicesetSpectrumWorkspaceGet(deviceSetIndex => $deviceSetIndex);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.DeviceSetApi()
    +deviceSetIndex = 56 # Integer | Index of device set in the device set list
    +
    +try: 
    +    api_response = api_instance.deviceset_spectrum_workspace_get(deviceSetIndex)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DeviceSetApi->devicesetSpectrumWorkspaceGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + +
    Path parameters
    + + + + + + +
    NameDescription
    deviceSetIndex* + + +
    @@ -67394,6 +68706,306 @@ except ApiException as e:

    +
    +
    +
    +

    instanceWindowsGet

    +

    +
    +
    +
    +

    +

    List the windows of the GUI with their workspace and whether each is hidden (GUI)

    +

    +
    +
    /sdrangel/windows
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost/sdrangel/windows"
    +
    +
    +
    import SWGSDRangel.*;
    +import SWGSDRangel.auth.*;
    +import SWGSDRangel.model.*;
    +import SWGSDRangel.api.InstanceApi;
    +
    +import java.io.File;
    +import java.util.*;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            WindowList result = apiInstance.instanceWindowsGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceWindowsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    import SWGSDRangel.api.InstanceApi;
    +
    +public class InstanceApiExample {
    +
    +    public static void main(String[] args) {
    +        InstanceApi apiInstance = new InstanceApi();
    +        try {
    +            WindowList result = apiInstance.instanceWindowsGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling InstanceApi#instanceWindowsGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +InstanceApi *apiInstance = [[InstanceApi alloc] init];
    +
    +[apiInstance instanceWindowsGetWithCompletionHandler: 
    +              ^(WindowList output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.InstanceApi()
    +
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceWindowsGet(callback);
    +
    +
    + + +
    +
    using System;
    +using System.Diagnostics;
    +using SWGSDRangel.Api;
    +using SWGSDRangel.Client;
    +using SWGSDRangel.Model;
    +
    +namespace Example
    +{
    +    public class instanceWindowsGetExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new InstanceApi();
    +
    +            try
    +            {
    +                WindowList result = apiInstance.instanceWindowsGet();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling InstanceApi.instanceWindowsGet: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    + +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
    +
    +$api_instance = new Swagger\Client\Api\InstanceApi();
    +
    +try {
    +    $result = $api_instance->instanceWindowsGet();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling InstanceApi->instanceWindowsGet: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    + +
    +
    use Data::Dumper;
    +use SWGSDRangel::Configuration;
    +use SWGSDRangel::InstanceApi;
    +
    +my $api_instance = SWGSDRangel::InstanceApi->new();
    +
    +eval { 
    +    my $result = $api_instance->instanceWindowsGet();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling InstanceApi->instanceWindowsGet: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_sdrangel
    +from swagger_sdrangel.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_sdrangel.InstanceApi()
    +
    +try: 
    +    api_response = api_instance.instance_windows_get()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling InstanceApi->instanceWindowsGet: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + + + + +

    Responses

    +

    Status: 200 - On success return the window list

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + +
    + +
    +
    + +

    Status: 501 - Function not implemented

    + + + +
    +
    + +
    +
    +

    Workspace

    @@ -68594,7 +70206,7 @@ $(document).ready(function() {
    - Generated 2026-09-14T12:05:38.294+02:00 + Generated 2026-09-15T17:49:43.819+02:00
    diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp index b426b6440..1b02d0cc0 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.cpp @@ -1585,6 +1585,191 @@ SWGDeviceSetApi::devicesetSpectrumDataGetCallback(SWGHttpRequestWorker * worker) } } +void +SWGDeviceSetApi::devicesetSpectrumHistoryGet(qint32 device_set_index, float seconds, qint32 bins, qint64 start_frequency, qint64 stop_frequency, float threshold) { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/deviceset/{deviceSetIndex}/spectrum/history"); + + QString device_set_indexPathParam("{"); device_set_indexPathParam.append("deviceSetIndex").append("}"); + fullPath.replace(device_set_indexPathParam, stringValue(device_set_index)); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("seconds")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(seconds))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("bins")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(bins))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("startFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(start_frequency))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("stopFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(stop_frequency))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("threshold")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(threshold))); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "GET"); + + + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGDeviceSetApi::devicesetSpectrumHistoryGetCallback); + + worker->execute(&input); +} + +void +SWGDeviceSetApi::devicesetSpectrumHistoryGetCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGGLSpectrumHistory* output = static_cast(create(json, QString("SWGGLSpectrumHistory"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit devicesetSpectrumHistoryGetSignal(output); + } else { + emit devicesetSpectrumHistoryGetSignalE(output, error_type, error_str); + emit devicesetSpectrumHistoryGetSignalEFull(worker, error_type, error_str); + } +} + +void +SWGDeviceSetApi::devicesetSpectrumHistoryImageGet(qint32 device_set_index, float 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"); + + QString device_set_indexPathParam("{"); device_set_indexPathParam.append("deviceSetIndex").append("}"); + fullPath.replace(device_set_indexPathParam, stringValue(device_set_index)); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("seconds")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(seconds))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("bins")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(bins))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("rows")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(rows))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("startFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(start_frequency))); + + if (fullPath.indexOf("?") > 0) + fullPath.append("&"); + else + fullPath.append("?"); + fullPath.append(QUrl::toPercentEncoding("stopFrequency")) + .append("=") + .append(QUrl::toPercentEncoding(stringValue(stop_frequency))); + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "GET"); + + + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGDeviceSetApi::devicesetSpectrumHistoryImageGetCallback); + + worker->execute(&input); +} + +void +SWGDeviceSetApi::devicesetSpectrumHistoryImageGetCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit devicesetSpectrumHistoryImageGetSignal(); + } else { + emit devicesetSpectrumHistoryImageGetSignalE(error_type, error_str); + emit devicesetSpectrumHistoryImageGetSignalEFull(worker, error_type, error_str); + } +} + void SWGDeviceSetApi::devicesetSpectrumReportGet(qint32 device_set_index) { QString fullPath; diff --git a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h index b1e5c5523..e5aa73b5e 100644 --- a/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h +++ b/swagger/sdrangel/code/qt5/client/SWGDeviceSetApi.h @@ -29,6 +29,7 @@ #include "SWGErrorResponse.h" #include "SWGGLSpectrum.h" #include "SWGGLSpectrumData.h" +#include "SWGGLSpectrumHistory.h" #include "SWGGLSpectrumReport.h" #include "SWGSpectrumActions.h" #include "SWGSpectrumServer.h" @@ -78,6 +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 devicesetSpectrumReportGet(qint32 device_set_index); void devicesetSpectrumServerDelete(qint32 device_set_index); void devicesetSpectrumServerGet(qint32 device_set_index); @@ -118,6 +121,8 @@ private: void devicesetGetCallback (SWGHttpRequestWorker * worker); void devicesetSpectrumActionsPostCallback (SWGHttpRequestWorker * worker); void devicesetSpectrumDataGetCallback (SWGHttpRequestWorker * worker); + void devicesetSpectrumHistoryGetCallback (SWGHttpRequestWorker * worker); + void devicesetSpectrumHistoryImageGetCallback (SWGHttpRequestWorker * worker); void devicesetSpectrumReportGetCallback (SWGHttpRequestWorker * worker); void devicesetSpectrumServerDeleteCallback (SWGHttpRequestWorker * worker); void devicesetSpectrumServerGetCallback (SWGHttpRequestWorker * worker); @@ -158,6 +163,8 @@ signals: void devicesetGetSignal(SWGDeviceSet* summary); void devicesetSpectrumActionsPostSignal(SWGSuccessResponse* summary); void devicesetSpectrumDataGetSignal(SWGGLSpectrumData* summary); + void devicesetSpectrumHistoryGetSignal(SWGGLSpectrumHistory* summary); + void devicesetSpectrumHistoryImageGetSignal(); void devicesetSpectrumReportGetSignal(SWGGLSpectrumReport* summary); void devicesetSpectrumServerDeleteSignal(SWGSuccessResponse* summary); void devicesetSpectrumServerGetSignal(SWGSpectrumServer* summary); @@ -197,6 +204,8 @@ signals: void devicesetGetSignalE(SWGDeviceSet* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumActionsPostSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumDataGetSignalE(SWGGLSpectrumData* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumHistoryGetSignalE(SWGGLSpectrumHistory* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumHistoryImageGetSignalE(QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumReportGetSignalE(SWGGLSpectrumReport* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerDeleteSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerGetSignalE(SWGSpectrumServer* summary, QNetworkReply::NetworkError error_type, QString& error_str); @@ -236,6 +245,8 @@ signals: void devicesetGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumActionsPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumDataGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumHistoryGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void devicesetSpectrumHistoryImageGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumReportGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerDeleteSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void devicesetSpectrumServerGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp new file mode 100644 index 000000000..266acc499 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.cpp @@ -0,0 +1,518 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGGLSpectrumHistory.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGGLSpectrumHistory::SWGGLSpectrumHistory(QString* json) { + init(); + this->fromJson(*json); +} + +SWGGLSpectrumHistory::SWGGLSpectrumHistory() { + center_frequency = 0L; + m_center_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bin_bandwidth = 0; + m_bin_bandwidth_isSet = false; + bins = 0; + m_bins_isSet = false; + rows = 0; + m_rows_isSet = false; + skipped_rows = 0; + m_skipped_rows_isSet = false; + first_time = nullptr; + m_first_time_isSet = false; + last_time = nullptr; + m_last_time_isSet = false; + seconds = 0.0f; + m_seconds_isSet = false; + floor_db = 0.0f; + m_floor_db_isSet = false; + threshold_db = 0.0f; + m_threshold_db_isSet = false; + max_db = new QList(); + m_max_db_isSet = false; + mean_db = new QList(); + m_mean_db_isSet = false; + occupancy = new QList(); + m_occupancy_isSet = false; + signal_count = 0; + m_signal_count_isSet = false; + signals = nullptr; + m_signals_isSet = false; +} + +SWGGLSpectrumHistory::~SWGGLSpectrumHistory() { + this->cleanup(); +} + +void +SWGGLSpectrumHistory::init() { + center_frequency = 0L; + m_center_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bin_bandwidth = 0; + m_bin_bandwidth_isSet = false; + bins = 0; + m_bins_isSet = false; + rows = 0; + m_rows_isSet = false; + skipped_rows = 0; + m_skipped_rows_isSet = false; + first_time = new QString(""); + m_first_time_isSet = false; + last_time = new QString(""); + m_last_time_isSet = false; + seconds = 0.0f; + m_seconds_isSet = false; + floor_db = 0.0f; + m_floor_db_isSet = false; + threshold_db = 0.0f; + m_threshold_db_isSet = false; + max_db = new QList(); + m_max_db_isSet = false; + mean_db = new QList(); + m_mean_db_isSet = false; + occupancy = new QList(); + m_occupancy_isSet = false; + signal_count = 0; + m_signal_count_isSet = false; + signals = new QList(); + m_signals_isSet = false; +} + +void +SWGGLSpectrumHistory::cleanup() { + + + + + + + + + if(first_time != nullptr) { + delete first_time; + } + if(last_time != nullptr) { + delete last_time; + } + + + + + + + + if(signals != nullptr) { + auto arr = signals; + for(auto o: *arr) { + delete o; + } + delete signals; + } +} + +SWGGLSpectrumHistory* +SWGGLSpectrumHistory::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGGLSpectrumHistory::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(¢er_frequency, pJson["centerFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", ""); + + ::SWGSDRangel::setValue(&start_frequency, pJson["startFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&stop_frequency, pJson["stopFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&bin_bandwidth, pJson["binBandwidth"], "qint32", ""); + + ::SWGSDRangel::setValue(&bins, pJson["bins"], "qint32", ""); + + ::SWGSDRangel::setValue(&rows, pJson["rows"], "qint32", ""); + + ::SWGSDRangel::setValue(&skipped_rows, pJson["skippedRows"], "qint32", ""); + + ::SWGSDRangel::setValue(&first_time, pJson["firstTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&last_time, pJson["lastTime"], "QString", "QString"); + + ::SWGSDRangel::setValue(&seconds, pJson["seconds"], "float", ""); + + ::SWGSDRangel::setValue(&floor_db, pJson["floorDb"], "float", ""); + + ::SWGSDRangel::setValue(&threshold_db, pJson["thresholdDb"], "float", ""); + + + ::SWGSDRangel::setValue(&max_db, pJson["maxDb"], "QList", "float"); + + ::SWGSDRangel::setValue(&mean_db, pJson["meanDb"], "QList", "float"); + + ::SWGSDRangel::setValue(&occupancy, pJson["occupancy"], "QList", "float"); + ::SWGSDRangel::setValue(&signal_count, pJson["signalCount"], "qint32", ""); + + + ::SWGSDRangel::setValue(&signals, pJson["signals"], "QList", "SWG#/SpectrumHistorySignal"); +} + +QString +SWGGLSpectrumHistory::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGGLSpectrumHistory::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_center_frequency_isSet){ + obj->insert("centerFrequency", QJsonValue(center_frequency)); + } + if(m_bandwidth_isSet){ + obj->insert("bandwidth", QJsonValue(bandwidth)); + } + if(m_start_frequency_isSet){ + obj->insert("startFrequency", QJsonValue(start_frequency)); + } + if(m_stop_frequency_isSet){ + obj->insert("stopFrequency", QJsonValue(stop_frequency)); + } + if(m_bin_bandwidth_isSet){ + obj->insert("binBandwidth", QJsonValue(bin_bandwidth)); + } + if(m_bins_isSet){ + obj->insert("bins", QJsonValue(bins)); + } + if(m_rows_isSet){ + obj->insert("rows", QJsonValue(rows)); + } + if(m_skipped_rows_isSet){ + obj->insert("skippedRows", QJsonValue(skipped_rows)); + } + if(first_time != nullptr && *first_time != QString("")){ + toJsonValue(QString("firstTime"), first_time, obj, QString("QString")); + } + if(last_time != nullptr && *last_time != QString("")){ + toJsonValue(QString("lastTime"), last_time, obj, QString("QString")); + } + if(m_seconds_isSet){ + obj->insert("seconds", QJsonValue(seconds)); + } + if(m_floor_db_isSet){ + obj->insert("floorDb", QJsonValue(floor_db)); + } + if(m_threshold_db_isSet){ + obj->insert("thresholdDb", QJsonValue(threshold_db)); + } + if(max_db && max_db->size() > 0){ + toJsonArray((QList*)max_db, obj, "maxDb", ""); + } + if(mean_db && mean_db->size() > 0){ + toJsonArray((QList*)mean_db, obj, "meanDb", ""); + } + if(occupancy && occupancy->size() > 0){ + toJsonArray((QList*)occupancy, obj, "occupancy", ""); + } + if(m_signal_count_isSet){ + obj->insert("signalCount", QJsonValue(signal_count)); + } + if(signals && signals->size() > 0){ + toJsonArray((QList*)signals, obj, "signals", "SWG#/SpectrumHistorySignal"); + } + + return obj; +} + +qint64 +SWGGLSpectrumHistory::getCenterFrequency() { + return center_frequency; +} +void +SWGGLSpectrumHistory::setCenterFrequency(qint64 center_frequency) { + this->center_frequency = center_frequency; + this->m_center_frequency_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getBandwidth() { + return bandwidth; +} +void +SWGGLSpectrumHistory::setBandwidth(qint32 bandwidth) { + this->bandwidth = bandwidth; + this->m_bandwidth_isSet = true; +} + +qint64 +SWGGLSpectrumHistory::getStartFrequency() { + return start_frequency; +} +void +SWGGLSpectrumHistory::setStartFrequency(qint64 start_frequency) { + this->start_frequency = start_frequency; + this->m_start_frequency_isSet = true; +} + +qint64 +SWGGLSpectrumHistory::getStopFrequency() { + return stop_frequency; +} +void +SWGGLSpectrumHistory::setStopFrequency(qint64 stop_frequency) { + this->stop_frequency = stop_frequency; + this->m_stop_frequency_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getBinBandwidth() { + return bin_bandwidth; +} +void +SWGGLSpectrumHistory::setBinBandwidth(qint32 bin_bandwidth) { + this->bin_bandwidth = bin_bandwidth; + this->m_bin_bandwidth_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getBins() { + return bins; +} +void +SWGGLSpectrumHistory::setBins(qint32 bins) { + this->bins = bins; + this->m_bins_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getRows() { + return rows; +} +void +SWGGLSpectrumHistory::setRows(qint32 rows) { + this->rows = rows; + this->m_rows_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getSkippedRows() { + return skipped_rows; +} +void +SWGGLSpectrumHistory::setSkippedRows(qint32 skipped_rows) { + this->skipped_rows = skipped_rows; + this->m_skipped_rows_isSet = true; +} + +QString* +SWGGLSpectrumHistory::getFirstTime() { + return first_time; +} +void +SWGGLSpectrumHistory::setFirstTime(QString* first_time) { + this->first_time = first_time; + this->m_first_time_isSet = true; +} + +QString* +SWGGLSpectrumHistory::getLastTime() { + return last_time; +} +void +SWGGLSpectrumHistory::setLastTime(QString* last_time) { + this->last_time = last_time; + this->m_last_time_isSet = true; +} + +float +SWGGLSpectrumHistory::getSeconds() { + return seconds; +} +void +SWGGLSpectrumHistory::setSeconds(float seconds) { + this->seconds = seconds; + this->m_seconds_isSet = true; +} + +float +SWGGLSpectrumHistory::getFloorDb() { + return floor_db; +} +void +SWGGLSpectrumHistory::setFloorDb(float floor_db) { + this->floor_db = floor_db; + this->m_floor_db_isSet = true; +} + +float +SWGGLSpectrumHistory::getThresholdDb() { + return threshold_db; +} +void +SWGGLSpectrumHistory::setThresholdDb(float threshold_db) { + this->threshold_db = threshold_db; + this->m_threshold_db_isSet = true; +} + +QList* +SWGGLSpectrumHistory::getMaxDb() { + return max_db; +} +void +SWGGLSpectrumHistory::setMaxDb(QList* max_db) { + this->max_db = max_db; + this->m_max_db_isSet = true; +} + +QList* +SWGGLSpectrumHistory::getMeanDb() { + return mean_db; +} +void +SWGGLSpectrumHistory::setMeanDb(QList* mean_db) { + this->mean_db = mean_db; + this->m_mean_db_isSet = true; +} + +QList* +SWGGLSpectrumHistory::getOccupancy() { + return occupancy; +} +void +SWGGLSpectrumHistory::setOccupancy(QList* occupancy) { + this->occupancy = occupancy; + this->m_occupancy_isSet = true; +} + +qint32 +SWGGLSpectrumHistory::getSignalCount() { + return signal_count; +} +void +SWGGLSpectrumHistory::setSignalCount(qint32 signal_count) { + this->signal_count = signal_count; + this->m_signal_count_isSet = true; +} + +QList* +SWGGLSpectrumHistory::getSignals() { + return signals; +} +void +SWGGLSpectrumHistory::setSignals(QList* signals) { + this->signals = signals; + this->m_signals_isSet = true; +} + + +bool +SWGGLSpectrumHistory::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_center_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_start_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_stop_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_bin_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_bins_isSet){ + isObjectUpdated = true; break; + } + if(m_rows_isSet){ + isObjectUpdated = true; break; + } + if(m_skipped_rows_isSet){ + isObjectUpdated = true; break; + } + if(first_time && *first_time != QString("")){ + isObjectUpdated = true; break; + } + if(last_time && *last_time != QString("")){ + isObjectUpdated = true; break; + } + if(m_seconds_isSet){ + isObjectUpdated = true; break; + } + if(m_floor_db_isSet){ + isObjectUpdated = true; break; + } + if(m_threshold_db_isSet){ + isObjectUpdated = true; break; + } + if(m_max_db_isSet){ + isObjectUpdated = true; break; + } + if(max_db && (max_db->size() > 0)){ + isObjectUpdated = true; break; + } + if(m_mean_db_isSet){ + isObjectUpdated = true; break; + } + if(mean_db && (mean_db->size() > 0)){ + isObjectUpdated = true; break; + } + if(m_occupancy_isSet){ + isObjectUpdated = true; break; + } + if(occupancy && (occupancy->size() > 0)){ + isObjectUpdated = true; break; + } + if(m_signal_count_isSet){ + isObjectUpdated = true; break; + } + if(signals && (signals->size() > 0)){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h new file mode 100644 index 000000000..0f6f7627d --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGGLSpectrumHistory.h @@ -0,0 +1,163 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGGLSpectrumHistory.h + * + * Statistics over the rows of spectrum history the GUI keeps for scrolling, reduced to a number of bins. Powers are in dB whatever the display shows. The floor is the median of the per bin means, and a bin counts as occupied in a row when it is above the floor by the threshold. Rows taken with another centre frequency or sample rate are skipped and counted. + */ + +#ifndef SWGGLSpectrumHistory_H_ +#define SWGGLSpectrumHistory_H_ + +#include + + +#include "SWG#/SpectrumHistorySignal.h" +#include +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGGLSpectrumHistory: public SWGObject { +public: + SWGGLSpectrumHistory(); + SWGGLSpectrumHistory(QString* json); + virtual ~SWGGLSpectrumHistory(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGGLSpectrumHistory* fromJson(QString &jsonString) override; + + qint64 getCenterFrequency(); + void setCenterFrequency(qint64 center_frequency); + + qint32 getBandwidth(); + void setBandwidth(qint32 bandwidth); + + qint64 getStartFrequency(); + void setStartFrequency(qint64 start_frequency); + + qint64 getStopFrequency(); + void setStopFrequency(qint64 stop_frequency); + + qint32 getBinBandwidth(); + void setBinBandwidth(qint32 bin_bandwidth); + + qint32 getBins(); + void setBins(qint32 bins); + + qint32 getRows(); + void setRows(qint32 rows); + + qint32 getSkippedRows(); + void setSkippedRows(qint32 skipped_rows); + + QString* getFirstTime(); + void setFirstTime(QString* first_time); + + QString* getLastTime(); + void setLastTime(QString* last_time); + + float getSeconds(); + void setSeconds(float seconds); + + float getFloorDb(); + void setFloorDb(float floor_db); + + float getThresholdDb(); + void setThresholdDb(float threshold_db); + + QList* getMaxDb(); + void setMaxDb(QList* max_db); + + QList* getMeanDb(); + void setMeanDb(QList* mean_db); + + QList* getOccupancy(); + void setOccupancy(QList* occupancy); + + qint32 getSignalCount(); + void setSignalCount(qint32 signal_count); + + QList* getSignals(); + void setSignals(QList* signals); + + + virtual bool isSet() override; + +private: + qint64 center_frequency; + bool m_center_frequency_isSet; + + qint32 bandwidth; + bool m_bandwidth_isSet; + + qint64 start_frequency; + bool m_start_frequency_isSet; + + qint64 stop_frequency; + bool m_stop_frequency_isSet; + + qint32 bin_bandwidth; + bool m_bin_bandwidth_isSet; + + qint32 bins; + bool m_bins_isSet; + + qint32 rows; + bool m_rows_isSet; + + qint32 skipped_rows; + bool m_skipped_rows_isSet; + + QString* first_time; + bool m_first_time_isSet; + + QString* last_time; + bool m_last_time_isSet; + + float seconds; + bool m_seconds_isSet; + + float floor_db; + bool m_floor_db_isSet; + + float threshold_db; + bool m_threshold_db_isSet; + + QList* max_db; + bool m_max_db_isSet; + + QList* mean_db; + bool m_mean_db_isSet; + + QList* occupancy; + bool m_occupancy_isSet; + + qint32 signal_count; + bool m_signal_count_isSet; + + QList* signals; + bool m_signals_isSet; + +}; + +} + +#endif /* SWGGLSpectrumHistory_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGInstanceApi.cpp b/swagger/sdrangel/code/qt5/client/SWGInstanceApi.cpp index 08f2ff927..8fdf437cd 100644 --- a/swagger/sdrangel/code/qt5/client/SWGInstanceApi.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGInstanceApi.cpp @@ -2199,5 +2199,57 @@ SWGInstanceApi::instanceSummaryCallback(SWGHttpRequestWorker * worker) { } } +void +SWGInstanceApi::instanceWindowsGet() { + QString fullPath; + fullPath.append(this->host).append(this->basePath).append("/sdrangel/windows"); + + + + SWGHttpRequestWorker *worker = new SWGHttpRequestWorker(); + SWGHttpRequestInput input(fullPath, "GET"); + + + + + + foreach(QString key, this->defaultHeaders.keys()) { + input.headers.insert(key, this->defaultHeaders.value(key)); + } + + connect(worker, + &SWGHttpRequestWorker::on_execution_finished, + this, + &SWGInstanceApi::instanceWindowsGetCallback); + + worker->execute(&input); +} + +void +SWGInstanceApi::instanceWindowsGetCallback(SWGHttpRequestWorker * worker) { + QString msg; + QString error_str = worker->error_str; + QNetworkReply::NetworkError error_type = worker->error_type; + + if (worker->error_type == QNetworkReply::NoError) { + msg = QString("Success! %1 bytes").arg(worker->response.length()); + } + else { + msg = "Error: " + worker->error_str; + } + + + QString json(worker->response); + SWGWindowList* output = static_cast(create(json, QString("SWGWindowList"))); + worker->deleteLater(); + + if (worker->error_type == QNetworkReply::NoError) { + emit instanceWindowsGetSignal(output); + } else { + emit instanceWindowsGetSignalE(output, error_type, error_str); + emit instanceWindowsGetSignalEFull(worker, error_type, error_str); + } +} + } diff --git a/swagger/sdrangel/code/qt5/client/SWGInstanceApi.h b/swagger/sdrangel/code/qt5/client/SWGInstanceApi.h index 3ea0cb05d..e3893e98d 100644 --- a/swagger/sdrangel/code/qt5/client/SWGInstanceApi.h +++ b/swagger/sdrangel/code/qt5/client/SWGInstanceApi.h @@ -39,6 +39,7 @@ #include "SWGPresetTransfer.h" #include "SWGPresets.h" #include "SWGSuccessResponse.h" +#include "SWGWindowList.h" #include @@ -96,6 +97,7 @@ public: void instancePresetPost(SWGPresetTransfer& body); void instancePresetPut(SWGPresetTransfer& body); void instanceSummary(); + void instanceWindowsGet(); private: void instanceAudioGetCallback (SWGHttpRequestWorker * worker); @@ -138,6 +140,7 @@ private: void instancePresetPostCallback (SWGHttpRequestWorker * worker); void instancePresetPutCallback (SWGHttpRequestWorker * worker); void instanceSummaryCallback (SWGHttpRequestWorker * worker); + void instanceWindowsGetCallback (SWGHttpRequestWorker * worker); signals: void instanceAudioGetSignal(SWGAudioDevices* summary); @@ -180,6 +183,7 @@ signals: void instancePresetPostSignal(SWGPresetIdentifier* summary); void instancePresetPutSignal(SWGPresetIdentifier* summary); void instanceSummarySignal(SWGInstanceSummaryResponse* summary); + void instanceWindowsGetSignal(SWGWindowList* summary); void instanceAudioGetSignalE(SWGAudioDevices* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioInputCleanupPatchSignalE(SWGSuccessResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); @@ -221,6 +225,7 @@ signals: void instancePresetPostSignalE(SWGPresetIdentifier* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instancePresetPutSignalE(SWGPresetIdentifier* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceSummarySignalE(SWGInstanceSummaryResponse* summary, QNetworkReply::NetworkError error_type, QString& error_str); + void instanceWindowsGetSignalE(SWGWindowList* summary, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceAudioInputCleanupPatchSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); @@ -262,6 +267,7 @@ signals: void instancePresetPostSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instancePresetPutSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); void instanceSummarySignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); + void instanceWindowsGetSignalEFull(SWGHttpRequestWorker* worker, QNetworkReply::NetworkError error_type, QString& error_str); }; diff --git a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h index ffac013c3..3edcd95fe 100644 --- a/swagger/sdrangel/code/qt5/client/SWGModelFactory.h +++ b/swagger/sdrangel/code/qt5/client/SWGModelFactory.h @@ -180,6 +180,7 @@ #include "SWGGLScope.h" #include "SWGGLSpectrum.h" #include "SWGGLSpectrumData.h" +#include "SWGGLSpectrumHistory.h" #include "SWGGLSpectrumReport.h" #include "SWGGS232ControllerActions.h" #include "SWGGS232ControllerReport.h" @@ -371,6 +372,7 @@ #include "SWGSpectrumAnnotationMarker.h" #include "SWGSpectrumCalibrationPoint.h" #include "SWGSpectrumHistogramMarker.h" +#include "SWGSpectrumHistorySignal.h" #include "SWGSpectrumMemorySettings.h" #include "SWGSpectrumPeak.h" #include "SWGSpectrumServer.h" @@ -412,6 +414,8 @@ #include "SWGWFMDemodSettings.h" #include "SWGWFMModReport.h" #include "SWGWFMModSettings.h" +#include "SWGWindowInfo.h" +#include "SWGWindowList.h" #include "SWGWorkspaceActions.h" #include "SWGWorkspaceInfo.h" #include "SWGXtrxInputReport.h" @@ -1254,6 +1258,11 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGGLSpectrumHistory").compare(type) == 0) { + SWGGLSpectrumHistory *obj = new SWGGLSpectrumHistory(); + obj->init(); + return obj; + } if(QString("SWGGLSpectrumReport").compare(type) == 0) { SWGGLSpectrumReport *obj = new SWGGLSpectrumReport(); obj->init(); @@ -2209,6 +2218,11 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGSpectrumHistorySignal").compare(type) == 0) { + SWGSpectrumHistorySignal *obj = new SWGSpectrumHistorySignal(); + obj->init(); + return obj; + } if(QString("SWGSpectrumMemorySettings").compare(type) == 0) { SWGSpectrumMemorySettings *obj = new SWGSpectrumMemorySettings(); obj->init(); @@ -2414,6 +2428,16 @@ namespace SWGSDRangel { obj->init(); return obj; } + if(QString("SWGWindowInfo").compare(type) == 0) { + SWGWindowInfo *obj = new SWGWindowInfo(); + obj->init(); + return obj; + } + if(QString("SWGWindowList").compare(type) == 0) { + SWGWindowList *obj = new SWGWindowList(); + obj->init(); + return obj; + } if(QString("SWGWorkspaceActions").compare(type) == 0) { SWGWorkspaceActions *obj = new SWGWorkspaceActions(); obj->init(); diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.cpp b/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.cpp new file mode 100644 index 000000000..3ee007719 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.cpp @@ -0,0 +1,273 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGSpectrumHistorySignal.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGSpectrumHistorySignal::SWGSpectrumHistorySignal(QString* json) { + init(); + this->fromJson(*json); +} + +SWGSpectrumHistorySignal::SWGSpectrumHistorySignal() { + frequency = 0L; + m_frequency_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + peak_db = 0.0f; + m_peak_db_isSet = false; + duty_cycle = 0.0f; + m_duty_cycle_isSet = false; + first_seen = nullptr; + m_first_seen_isSet = false; + last_seen = nullptr; + m_last_seen_isSet = false; +} + +SWGSpectrumHistorySignal::~SWGSpectrumHistorySignal() { + this->cleanup(); +} + +void +SWGSpectrumHistorySignal::init() { + frequency = 0L; + m_frequency_isSet = false; + start_frequency = 0L; + m_start_frequency_isSet = false; + stop_frequency = 0L; + m_stop_frequency_isSet = false; + bandwidth = 0; + m_bandwidth_isSet = false; + peak_db = 0.0f; + m_peak_db_isSet = false; + duty_cycle = 0.0f; + m_duty_cycle_isSet = false; + first_seen = new QString(""); + m_first_seen_isSet = false; + last_seen = new QString(""); + m_last_seen_isSet = false; +} + +void +SWGSpectrumHistorySignal::cleanup() { + + + + + + + if(first_seen != nullptr) { + delete first_seen; + } + if(last_seen != nullptr) { + delete last_seen; + } +} + +SWGSpectrumHistorySignal* +SWGSpectrumHistorySignal::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGSpectrumHistorySignal::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&frequency, pJson["frequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&start_frequency, pJson["startFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&stop_frequency, pJson["stopFrequency"], "qint64", ""); + + ::SWGSDRangel::setValue(&bandwidth, pJson["bandwidth"], "qint32", ""); + + ::SWGSDRangel::setValue(&peak_db, pJson["peakDb"], "float", ""); + + ::SWGSDRangel::setValue(&duty_cycle, pJson["dutyCycle"], "float", ""); + + ::SWGSDRangel::setValue(&first_seen, pJson["firstSeen"], "QString", "QString"); + + ::SWGSDRangel::setValue(&last_seen, pJson["lastSeen"], "QString", "QString"); + +} + +QString +SWGSpectrumHistorySignal::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGSpectrumHistorySignal::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_frequency_isSet){ + obj->insert("frequency", QJsonValue(frequency)); + } + if(m_start_frequency_isSet){ + obj->insert("startFrequency", QJsonValue(start_frequency)); + } + if(m_stop_frequency_isSet){ + obj->insert("stopFrequency", QJsonValue(stop_frequency)); + } + if(m_bandwidth_isSet){ + obj->insert("bandwidth", QJsonValue(bandwidth)); + } + if(m_peak_db_isSet){ + obj->insert("peakDb", QJsonValue(peak_db)); + } + if(m_duty_cycle_isSet){ + obj->insert("dutyCycle", QJsonValue(duty_cycle)); + } + if(first_seen != nullptr && *first_seen != QString("")){ + toJsonValue(QString("firstSeen"), first_seen, obj, QString("QString")); + } + if(last_seen != nullptr && *last_seen != QString("")){ + toJsonValue(QString("lastSeen"), last_seen, obj, QString("QString")); + } + + return obj; +} + +qint64 +SWGSpectrumHistorySignal::getFrequency() { + return frequency; +} +void +SWGSpectrumHistorySignal::setFrequency(qint64 frequency) { + this->frequency = frequency; + this->m_frequency_isSet = true; +} + +qint64 +SWGSpectrumHistorySignal::getStartFrequency() { + return start_frequency; +} +void +SWGSpectrumHistorySignal::setStartFrequency(qint64 start_frequency) { + this->start_frequency = start_frequency; + this->m_start_frequency_isSet = true; +} + +qint64 +SWGSpectrumHistorySignal::getStopFrequency() { + return stop_frequency; +} +void +SWGSpectrumHistorySignal::setStopFrequency(qint64 stop_frequency) { + this->stop_frequency = stop_frequency; + this->m_stop_frequency_isSet = true; +} + +qint32 +SWGSpectrumHistorySignal::getBandwidth() { + return bandwidth; +} +void +SWGSpectrumHistorySignal::setBandwidth(qint32 bandwidth) { + this->bandwidth = bandwidth; + this->m_bandwidth_isSet = true; +} + +float +SWGSpectrumHistorySignal::getPeakDb() { + return peak_db; +} +void +SWGSpectrumHistorySignal::setPeakDb(float peak_db) { + this->peak_db = peak_db; + this->m_peak_db_isSet = true; +} + +float +SWGSpectrumHistorySignal::getDutyCycle() { + return duty_cycle; +} +void +SWGSpectrumHistorySignal::setDutyCycle(float duty_cycle) { + this->duty_cycle = duty_cycle; + this->m_duty_cycle_isSet = true; +} + +QString* +SWGSpectrumHistorySignal::getFirstSeen() { + return first_seen; +} +void +SWGSpectrumHistorySignal::setFirstSeen(QString* first_seen) { + this->first_seen = first_seen; + this->m_first_seen_isSet = true; +} + +QString* +SWGSpectrumHistorySignal::getLastSeen() { + return last_seen; +} +void +SWGSpectrumHistorySignal::setLastSeen(QString* last_seen) { + this->last_seen = last_seen; + this->m_last_seen_isSet = true; +} + + +bool +SWGSpectrumHistorySignal::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_start_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_stop_frequency_isSet){ + isObjectUpdated = true; break; + } + if(m_bandwidth_isSet){ + isObjectUpdated = true; break; + } + if(m_peak_db_isSet){ + isObjectUpdated = true; break; + } + if(m_duty_cycle_isSet){ + isObjectUpdated = true; break; + } + if(first_seen && *first_seen != QString("")){ + isObjectUpdated = true; break; + } + if(last_seen && *last_seen != QString("")){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.h b/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.h new file mode 100644 index 000000000..8ee2a318d --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGSpectrumHistorySignal.h @@ -0,0 +1,101 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGSpectrumHistorySignal.h + * + * A signal found in the spectrum history + */ + +#ifndef SWGSpectrumHistorySignal_H_ +#define SWGSpectrumHistorySignal_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGSpectrumHistorySignal: public SWGObject { +public: + SWGSpectrumHistorySignal(); + SWGSpectrumHistorySignal(QString* json); + virtual ~SWGSpectrumHistorySignal(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGSpectrumHistorySignal* fromJson(QString &jsonString) override; + + qint64 getFrequency(); + void setFrequency(qint64 frequency); + + qint64 getStartFrequency(); + void setStartFrequency(qint64 start_frequency); + + qint64 getStopFrequency(); + void setStopFrequency(qint64 stop_frequency); + + qint32 getBandwidth(); + void setBandwidth(qint32 bandwidth); + + float getPeakDb(); + void setPeakDb(float peak_db); + + float getDutyCycle(); + void setDutyCycle(float duty_cycle); + + QString* getFirstSeen(); + void setFirstSeen(QString* first_seen); + + QString* getLastSeen(); + void setLastSeen(QString* last_seen); + + + virtual bool isSet() override; + +private: + qint64 frequency; + bool m_frequency_isSet; + + qint64 start_frequency; + bool m_start_frequency_isSet; + + qint64 stop_frequency; + bool m_stop_frequency_isSet; + + qint32 bandwidth; + bool m_bandwidth_isSet; + + float peak_db; + bool m_peak_db_isSet; + + float duty_cycle; + bool m_duty_cycle_isSet; + + QString* first_seen; + bool m_first_seen_isSet; + + QString* last_seen; + bool m_last_seen_isSet; + +}; + +} + +#endif /* SWGSpectrumHistorySignal_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGWindowInfo.cpp b/swagger/sdrangel/code/qt5/client/SWGWindowInfo.cpp new file mode 100644 index 000000000..09b64e4a8 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWindowInfo.cpp @@ -0,0 +1,227 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGWindowInfo.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGWindowInfo::SWGWindowInfo(QString* json) { + init(); + this->fromJson(*json); +} + +SWGWindowInfo::SWGWindowInfo() { + kind = nullptr; + m_kind_isSet = false; + device_set_index = 0; + m_device_set_index_isSet = false; + index = 0; + m_index_isSet = false; + title = nullptr; + m_title_isSet = false; + workspace_index = 0; + m_workspace_index_isSet = false; + hidden = 0; + m_hidden_isSet = false; +} + +SWGWindowInfo::~SWGWindowInfo() { + this->cleanup(); +} + +void +SWGWindowInfo::init() { + kind = new QString(""); + m_kind_isSet = false; + device_set_index = 0; + m_device_set_index_isSet = false; + index = 0; + m_index_isSet = false; + title = new QString(""); + m_title_isSet = false; + workspace_index = 0; + m_workspace_index_isSet = false; + hidden = 0; + m_hidden_isSet = false; +} + +void +SWGWindowInfo::cleanup() { + if(kind != nullptr) { + delete kind; + } + + + if(title != nullptr) { + delete title; + } + + +} + +SWGWindowInfo* +SWGWindowInfo::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGWindowInfo::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&kind, pJson["kind"], "QString", "QString"); + + ::SWGSDRangel::setValue(&device_set_index, pJson["deviceSetIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&index, pJson["index"], "qint32", ""); + + ::SWGSDRangel::setValue(&title, pJson["title"], "QString", "QString"); + + ::SWGSDRangel::setValue(&workspace_index, pJson["workspaceIndex"], "qint32", ""); + + ::SWGSDRangel::setValue(&hidden, pJson["hidden"], "qint32", ""); + +} + +QString +SWGWindowInfo::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGWindowInfo::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(kind != nullptr && *kind != QString("")){ + toJsonValue(QString("kind"), kind, obj, QString("QString")); + } + if(m_device_set_index_isSet){ + obj->insert("deviceSetIndex", QJsonValue(device_set_index)); + } + if(m_index_isSet){ + obj->insert("index", QJsonValue(index)); + } + if(title != nullptr && *title != QString("")){ + toJsonValue(QString("title"), title, obj, QString("QString")); + } + if(m_workspace_index_isSet){ + obj->insert("workspaceIndex", QJsonValue(workspace_index)); + } + if(m_hidden_isSet){ + obj->insert("hidden", QJsonValue(hidden)); + } + + return obj; +} + +QString* +SWGWindowInfo::getKind() { + return kind; +} +void +SWGWindowInfo::setKind(QString* kind) { + this->kind = kind; + this->m_kind_isSet = true; +} + +qint32 +SWGWindowInfo::getDeviceSetIndex() { + return device_set_index; +} +void +SWGWindowInfo::setDeviceSetIndex(qint32 device_set_index) { + this->device_set_index = device_set_index; + this->m_device_set_index_isSet = true; +} + +qint32 +SWGWindowInfo::getIndex() { + return index; +} +void +SWGWindowInfo::setIndex(qint32 index) { + this->index = index; + this->m_index_isSet = true; +} + +QString* +SWGWindowInfo::getTitle() { + return title; +} +void +SWGWindowInfo::setTitle(QString* title) { + this->title = title; + this->m_title_isSet = true; +} + +qint32 +SWGWindowInfo::getWorkspaceIndex() { + return workspace_index; +} +void +SWGWindowInfo::setWorkspaceIndex(qint32 workspace_index) { + this->workspace_index = workspace_index; + this->m_workspace_index_isSet = true; +} + +qint32 +SWGWindowInfo::getHidden() { + return hidden; +} +void +SWGWindowInfo::setHidden(qint32 hidden) { + this->hidden = hidden; + this->m_hidden_isSet = true; +} + + +bool +SWGWindowInfo::isSet(){ + bool isObjectUpdated = false; + do{ + if(kind && *kind != QString("")){ + isObjectUpdated = true; break; + } + if(m_device_set_index_isSet){ + isObjectUpdated = true; break; + } + if(m_index_isSet){ + isObjectUpdated = true; break; + } + if(title && *title != QString("")){ + isObjectUpdated = true; break; + } + if(m_workspace_index_isSet){ + isObjectUpdated = true; break; + } + if(m_hidden_isSet){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGWindowInfo.h b/swagger/sdrangel/code/qt5/client/SWGWindowInfo.h new file mode 100644 index 000000000..5870f7e49 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWindowInfo.h @@ -0,0 +1,89 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGWindowInfo.h + * + * One window of the GUI + */ + +#ifndef SWGWindowInfo_H_ +#define SWGWindowInfo_H_ + +#include + + +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGWindowInfo: public SWGObject { +public: + SWGWindowInfo(); + SWGWindowInfo(QString* json); + virtual ~SWGWindowInfo(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGWindowInfo* fromJson(QString &jsonString) override; + + QString* getKind(); + void setKind(QString* kind); + + qint32 getDeviceSetIndex(); + void setDeviceSetIndex(qint32 device_set_index); + + qint32 getIndex(); + void setIndex(qint32 index); + + QString* getTitle(); + void setTitle(QString* title); + + qint32 getWorkspaceIndex(); + void setWorkspaceIndex(qint32 workspace_index); + + qint32 getHidden(); + void setHidden(qint32 hidden); + + + virtual bool isSet() override; + +private: + QString* kind; + bool m_kind_isSet; + + qint32 device_set_index; + bool m_device_set_index_isSet; + + qint32 index; + bool m_index_isSet; + + QString* title; + bool m_title_isSet; + + qint32 workspace_index; + bool m_workspace_index_isSet; + + qint32 hidden; + bool m_hidden_isSet; + +}; + +} + +#endif /* SWGWindowInfo_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGWindowList.cpp b/swagger/sdrangel/code/qt5/client/SWGWindowList.cpp new file mode 100644 index 000000000..db9d4b5c2 --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWindowList.cpp @@ -0,0 +1,137 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + + +#include "SWGWindowList.h" + +#include "SWGHelpers.h" + +#include +#include +#include +#include + +namespace SWGSDRangel { + +SWGWindowList::SWGWindowList(QString* json) { + init(); + this->fromJson(*json); +} + +SWGWindowList::SWGWindowList() { + window_count = 0; + m_window_count_isSet = false; + windows = nullptr; + m_windows_isSet = false; +} + +SWGWindowList::~SWGWindowList() { + this->cleanup(); +} + +void +SWGWindowList::init() { + window_count = 0; + m_window_count_isSet = false; + windows = new QList(); + m_windows_isSet = false; +} + +void +SWGWindowList::cleanup() { + + if(windows != nullptr) { + auto arr = windows; + for(auto o: *arr) { + delete o; + } + delete windows; + } +} + +SWGWindowList* +SWGWindowList::fromJson(QString &json) { + QByteArray array (json.toStdString().c_str()); + QJsonDocument doc = QJsonDocument::fromJson(array); + QJsonObject jsonObject = doc.object(); + this->fromJsonObject(jsonObject); + return this; +} + +void +SWGWindowList::fromJsonObject(QJsonObject &pJson) { + ::SWGSDRangel::setValue(&window_count, pJson["windowCount"], "qint32", ""); + + + ::SWGSDRangel::setValue(&windows, pJson["windows"], "QList", "SWGWindowInfo"); +} + +QString +SWGWindowList::asJson () +{ + QJsonObject* obj = this->asJsonObject(); + + QJsonDocument doc(*obj); + QByteArray bytes = doc.toJson(); + delete obj; + return QString(bytes); +} + +QJsonObject* +SWGWindowList::asJsonObject() { + QJsonObject* obj = new QJsonObject(); + if(m_window_count_isSet){ + obj->insert("windowCount", QJsonValue(window_count)); + } + if(windows && windows->size() > 0){ + toJsonArray((QList*)windows, obj, "windows", "SWGWindowInfo"); + } + + return obj; +} + +qint32 +SWGWindowList::getWindowCount() { + return window_count; +} +void +SWGWindowList::setWindowCount(qint32 window_count) { + this->window_count = window_count; + this->m_window_count_isSet = true; +} + +QList* +SWGWindowList::getWindows() { + return windows; +} +void +SWGWindowList::setWindows(QList* windows) { + this->windows = windows; + this->m_windows_isSet = true; +} + + +bool +SWGWindowList::isSet(){ + bool isObjectUpdated = false; + do{ + if(m_window_count_isSet){ + isObjectUpdated = true; break; + } + if(windows && (windows->size() > 0)){ + isObjectUpdated = true; break; + } + }while(false); + return isObjectUpdated; +} +} + diff --git a/swagger/sdrangel/code/qt5/client/SWGWindowList.h b/swagger/sdrangel/code/qt5/client/SWGWindowList.h new file mode 100644 index 000000000..8ded1a5da --- /dev/null +++ b/swagger/sdrangel/code/qt5/client/SWGWindowList.h @@ -0,0 +1,66 @@ +/** + * SDRangel + * This is the web REST/JSON API of SDRangel SDR software. SDRangel is an Open Source Qt5/OpenGL 3.0+ (4.3+ in Windows) GUI and server Software Defined Radio and signal analyzer in software. It supports Airspy, BladeRF, HackRF, LimeSDR, PlutoSDR, RTL-SDR, SDRplay RSP1 and FunCube --- Limitations and specifcities: * In SDRangel GUI the first Rx device set cannot be deleted. Conversely the server starts with no device sets and its number of device sets can be reduced to zero by as many calls as necessary to /sdrangel/deviceset with DELETE method. * Preset import and export from/to file is a server only feature. * Device set focus is a GUI only feature. * The following channels are not implemented (status 501 is returned): ATV and DATV demodulators, Channel Analyzer NG, LoRa demodulator * The device settings and report structures contains only the sub-structure corresponding to the device type. The DeviceSettings and DeviceReport structures documented here shows all of them but only one will be or should be present at a time * The channel settings and report structures contains only the sub-structure corresponding to the channel type. The ChannelSettings and ChannelReport structures documented here shows all of them but only one will be or should be present at a time --- + * + * OpenAPI spec version: 7.0.0 + * Contact: f4exb06@gmail.com + * + * NOTE: This class is auto generated by the swagger code generator program. + * https://github.com/swagger-api/swagger-codegen.git + * Do not edit the class manually. + */ + +/* + * SWGWindowList.h + * + * Every device, spectrum, channel and feature window of the GUI + */ + +#ifndef SWGWindowList_H_ +#define SWGWindowList_H_ + +#include + + +#include "SWGWindowInfo.h" +#include + +#include "SWGObject.h" +#include "export.h" + +namespace SWGSDRangel { + +class SWG_API SWGWindowList: public SWGObject { +public: + SWGWindowList(); + SWGWindowList(QString* json); + virtual ~SWGWindowList(); + void init(); + void cleanup(); + + virtual QString asJson () override; + virtual QJsonObject* asJsonObject() override; + virtual void fromJsonObject(QJsonObject &json) override; + virtual SWGWindowList* fromJson(QString &jsonString) override; + + qint32 getWindowCount(); + void setWindowCount(qint32 window_count); + + QList* getWindows(); + void setWindows(QList* windows); + + + virtual bool isSet() override; + +private: + qint32 window_count; + bool m_window_count_isSet; + + QList* windows; + bool m_windows_isSet; + +}; + +} + +#endif /* SWGWindowList_H_ */ diff --git a/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.cpp b/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.cpp index 94de36bcc..bb988d3d8 100644 --- a/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.cpp @@ -30,6 +30,8 @@ SWGWorkspaceInfo::SWGWorkspaceInfo(QString* json) { SWGWorkspaceInfo::SWGWorkspaceInfo() { index = 0; m_index_isSet = false; + hidden = 0; + m_hidden_isSet = false; } SWGWorkspaceInfo::~SWGWorkspaceInfo() { @@ -40,11 +42,14 @@ void SWGWorkspaceInfo::init() { index = 0; m_index_isSet = false; + hidden = 0; + m_hidden_isSet = false; } void SWGWorkspaceInfo::cleanup() { + } SWGWorkspaceInfo* @@ -60,6 +65,8 @@ void SWGWorkspaceInfo::fromJsonObject(QJsonObject &pJson) { ::SWGSDRangel::setValue(&index, pJson["index"], "qint32", ""); + ::SWGSDRangel::setValue(&hidden, pJson["hidden"], "qint32", ""); + } QString @@ -79,6 +86,9 @@ SWGWorkspaceInfo::asJsonObject() { if(m_index_isSet){ obj->insert("index", QJsonValue(index)); } + if(m_hidden_isSet){ + obj->insert("hidden", QJsonValue(hidden)); + } return obj; } @@ -93,6 +103,16 @@ SWGWorkspaceInfo::setIndex(qint32 index) { this->m_index_isSet = true; } +qint32 +SWGWorkspaceInfo::getHidden() { + return hidden; +} +void +SWGWorkspaceInfo::setHidden(qint32 hidden) { + this->hidden = hidden; + this->m_hidden_isSet = true; +} + bool SWGWorkspaceInfo::isSet(){ @@ -101,6 +121,9 @@ SWGWorkspaceInfo::isSet(){ if(m_index_isSet){ isObjectUpdated = true; break; } + if(m_hidden_isSet){ + isObjectUpdated = true; break; + } }while(false); return isObjectUpdated; } diff --git a/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.h b/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.h index e094b8b16..013c17451 100644 --- a/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.h +++ b/swagger/sdrangel/code/qt5/client/SWGWorkspaceInfo.h @@ -13,7 +13,7 @@ /* * SWGWorkspaceInfo.h * - * Workspace information + * Where a window is and whether it is shown (GUI). On a PUT either field may be given alone: index moves the window, hidden hides or shows it */ #ifndef SWGWorkspaceInfo_H_ @@ -44,6 +44,9 @@ public: qint32 getIndex(); void setIndex(qint32 index); + qint32 getHidden(); + void setHidden(qint32 hidden); + virtual bool isSet() override; @@ -51,6 +54,9 @@ private: qint32 index; bool m_index_isSet; + qint32 hidden; + bool m_hidden_isSet; + }; }