diff --git a/plugins/samplesink/bladerfoutput/bladerfoutputplugin.cpp b/plugins/samplesink/bladerfoutput/bladerfoutputplugin.cpp index e37dc1108..8e77d2cce 100644 --- a/plugins/samplesink/bladerfoutput/bladerfoutputplugin.cpp +++ b/plugins/samplesink/bladerfoutput/bladerfoutputplugin.cpp @@ -69,6 +69,7 @@ PluginInterface::SamplingDevices BladerfOutputPlugin::enumSampleSinks() i, PluginInterface::SamplingDevice::PhysicalDevice, false, + 1, 0)); } diff --git a/plugins/samplesink/filesink/filesinkplugin.cpp b/plugins/samplesink/filesink/filesinkplugin.cpp index ba328713b..5b8ef58f3 100644 --- a/plugins/samplesink/filesink/filesinkplugin.cpp +++ b/plugins/samplesink/filesink/filesinkplugin.cpp @@ -62,6 +62,7 @@ PluginInterface::SamplingDevices FileSinkPlugin::enumSampleSinks() 0, PluginInterface::SamplingDevice::BuiltInDevice, false, + 1, 0)); return result; diff --git a/plugins/samplesink/hackrfoutput/hackrfoutputplugin.cpp b/plugins/samplesink/hackrfoutput/hackrfoutputplugin.cpp index 98a9e4481..04cb1ecae 100644 --- a/plugins/samplesink/hackrfoutput/hackrfoutputplugin.cpp +++ b/plugins/samplesink/hackrfoutput/hackrfoutputplugin.cpp @@ -100,6 +100,7 @@ PluginInterface::SamplingDevices HackRFOutputPlugin::enumSampleSinks() i, PluginInterface::SamplingDevice::PhysicalDevice, false, + 1, 0)); qDebug("HackRFOutputPlugin::enumSampleSinks: enumerated HackRF device #%d", i); diff --git a/plugins/samplesink/limesdroutput/limesdroutputplugin.cpp b/plugins/samplesink/limesdroutput/limesdroutputplugin.cpp index d6dd46ee6..3fad955c0 100644 --- a/plugins/samplesink/limesdroutput/limesdroutputplugin.cpp +++ b/plugins/samplesink/limesdroutput/limesdroutputplugin.cpp @@ -98,6 +98,7 @@ PluginInterface::SamplingDevices LimeSDROutputPlugin::enumSampleSinks() i, PluginInterface::SamplingDevice::PhysicalDevice, false, + limeSDRParams.m_nbTxChannels, j)); } } diff --git a/plugins/samplesink/plutosdroutput/plutosdroutputplugin.cpp b/plugins/samplesink/plutosdroutput/plutosdroutputplugin.cpp index 776472ca0..ffaa23c14 100644 --- a/plugins/samplesink/plutosdroutput/plutosdroutputplugin.cpp +++ b/plugins/samplesink/plutosdroutput/plutosdroutputplugin.cpp @@ -76,6 +76,7 @@ PluginInterface::SamplingDevices PlutoSDROutputPlugin::enumSampleSinks() i, PluginInterface::SamplingDevice::PhysicalDevice, false, + 1, 0)); qDebug("PlutoSDROutputPlugin::enumSampleSources: enumerated PlutoSDR device #%d", i); diff --git a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkplugin.cpp b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkplugin.cpp index 99491d3e8..65e330910 100644 --- a/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkplugin.cpp +++ b/plugins/samplesink/sdrdaemonsink/sdrdaemonsinkplugin.cpp @@ -63,6 +63,7 @@ PluginInterface::SamplingDevices SDRdaemonSinkPlugin::enumSampleSinks() 0, PluginInterface::SamplingDevice::BuiltInDevice, false, + 1, 0)); return result; diff --git a/plugins/samplesource/airspy/airspyplugin.cpp b/plugins/samplesource/airspy/airspyplugin.cpp index eccc2de54..43fe367a9 100644 --- a/plugins/samplesource/airspy/airspyplugin.cpp +++ b/plugins/samplesource/airspy/airspyplugin.cpp @@ -102,6 +102,7 @@ PluginInterface::SamplingDevices AirspyPlugin::enumSampleSources() i, PluginInterface::SamplingDevice::PhysicalDevice, true, + 1, 0)); qDebug("AirspyPlugin::enumSampleSources: enumerated Airspy device #%d", i); diff --git a/plugins/samplesource/bladerfinput/bladerfinputplugin.cpp b/plugins/samplesource/bladerfinput/bladerfinputplugin.cpp index edf769473..e35097438 100644 --- a/plugins/samplesource/bladerfinput/bladerfinputplugin.cpp +++ b/plugins/samplesource/bladerfinput/bladerfinputplugin.cpp @@ -70,6 +70,7 @@ PluginInterface::SamplingDevices BlderfInputPlugin::enumSampleSources() i, PluginInterface::SamplingDevice::PhysicalDevice, true, + 1, 0)); } diff --git a/plugins/samplesource/fcdpro/fcdproplugin.cpp b/plugins/samplesource/fcdpro/fcdproplugin.cpp index a813bdcb7..7b81c8f87 100644 --- a/plugins/samplesource/fcdpro/fcdproplugin.cpp +++ b/plugins/samplesource/fcdpro/fcdproplugin.cpp @@ -68,6 +68,7 @@ PluginInterface::SamplingDevices FCDProPlugin::enumSampleSources() i, PluginInterface::SamplingDevice::PhysicalDevice, true, + 1, 0)); device_info = device_info->next; diff --git a/plugins/samplesource/fcdproplus/fcdproplusplugin.cpp b/plugins/samplesource/fcdproplus/fcdproplusplugin.cpp index 4a5c58d29..419563aa6 100644 --- a/plugins/samplesource/fcdproplus/fcdproplusplugin.cpp +++ b/plugins/samplesource/fcdproplus/fcdproplusplugin.cpp @@ -70,6 +70,7 @@ PluginInterface::SamplingDevices FCDProPlusPlugin::enumSampleSources() i, PluginInterface::SamplingDevice::PhysicalDevice, true, + 1, 0)); device_info = device_info->next; diff --git a/plugins/samplesource/filesource/filesourceplugin.cpp b/plugins/samplesource/filesource/filesourceplugin.cpp index a749a2ae6..6d7b07c0b 100644 --- a/plugins/samplesource/filesource/filesourceplugin.cpp +++ b/plugins/samplesource/filesource/filesourceplugin.cpp @@ -62,6 +62,7 @@ PluginInterface::SamplingDevices FileSourcePlugin::enumSampleSources() 0, PluginInterface::SamplingDevice::BuiltInDevice, true, + 1, 0)); return result; diff --git a/plugins/samplesource/hackrfinput/hackrfinputplugin.cpp b/plugins/samplesource/hackrfinput/hackrfinputplugin.cpp index 728f3e0c1..5bd613327 100644 --- a/plugins/samplesource/hackrfinput/hackrfinputplugin.cpp +++ b/plugins/samplesource/hackrfinput/hackrfinputplugin.cpp @@ -101,6 +101,7 @@ PluginInterface::SamplingDevices HackRFInputPlugin::enumSampleSources() i, PluginInterface::SamplingDevice::PhysicalDevice, true, + 1, 0)); qDebug("HackRFPlugin::enumSampleSources: enumerated HackRF device #%d", i); diff --git a/plugins/samplesource/limesdrinput/limesdrinputplugin.cpp b/plugins/samplesource/limesdrinput/limesdrinputplugin.cpp index e4c8475e7..9a92c8536 100644 --- a/plugins/samplesource/limesdrinput/limesdrinputplugin.cpp +++ b/plugins/samplesource/limesdrinput/limesdrinputplugin.cpp @@ -98,6 +98,7 @@ PluginInterface::SamplingDevices LimeSDRInputPlugin::enumSampleSources() i, PluginInterface::SamplingDevice::PhysicalDevice, true, + limeSDRParams.m_nbRxChannels, j)); } } diff --git a/plugins/samplesource/plutosdrinput/plutosdrinputplugin.cpp b/plugins/samplesource/plutosdrinput/plutosdrinputplugin.cpp index 10711d61c..2f9847eec 100644 --- a/plugins/samplesource/plutosdrinput/plutosdrinputplugin.cpp +++ b/plugins/samplesource/plutosdrinput/plutosdrinputplugin.cpp @@ -76,6 +76,7 @@ PluginInterface::SamplingDevices PlutoSDRInputPlugin::enumSampleSources() i, PluginInterface::SamplingDevice::PhysicalDevice, true, + 1, 0)); qDebug("PlutoSDRInputPlugin::enumSampleSources: enumerated PlutoSDR device #%d", i); diff --git a/plugins/samplesource/rtlsdr/rtlsdrplugin.cpp b/plugins/samplesource/rtlsdr/rtlsdrplugin.cpp index 8cc93407a..e96a7f6b5 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrplugin.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrplugin.cpp @@ -60,6 +60,7 @@ PluginInterface::SamplingDevices RTLSDRPlugin::enumSampleSources() i, PluginInterface::SamplingDevice::PhysicalDevice, true, + 1, 0)); } return result; diff --git a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceplugin.cpp b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceplugin.cpp index 9b4c7e989..00fa7a77f 100644 --- a/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceplugin.cpp +++ b/plugins/samplesource/sdrdaemonsource/sdrdaemonsourceplugin.cpp @@ -63,6 +63,7 @@ PluginInterface::SamplingDevices SDRdaemonSourcePlugin::enumSampleSources() 0, PluginInterface::SamplingDevice::BuiltInDevice, true, + 1, 0)); return result; diff --git a/plugins/samplesource/sdrplay/sdrplayplugin.cpp b/plugins/samplesource/sdrplay/sdrplayplugin.cpp index f2030a4e3..30902facc 100644 --- a/plugins/samplesource/sdrplay/sdrplayplugin.cpp +++ b/plugins/samplesource/sdrplay/sdrplayplugin.cpp @@ -80,6 +80,7 @@ PluginInterface::SamplingDevices SDRPlayPlugin::enumSampleSources() i, PluginInterface::SamplingDevice::PhysicalDevice, true, + 1, 0)); } diff --git a/sdrbase/device/devicesinkapi.cpp b/sdrbase/device/devicesinkapi.cpp index 6707723e6..f665965a7 100644 --- a/sdrbase/device/devicesinkapi.cpp +++ b/sdrbase/device/devicesinkapi.cpp @@ -27,6 +27,7 @@ DeviceSinkAPI::DeviceSinkAPI(int deviceTabIndex, m_deviceTabIndex(deviceTabIndex), m_deviceSinkEngine(deviceSinkEngine), m_sampleSinkSequence(0), + m_nbItems(1), m_itemIndex(0), m_pluginInterface(0), m_sampleSinkPluginInstanceUI(0), @@ -160,6 +161,11 @@ void DeviceSinkAPI::setSampleSinkSequence(int sequence) m_deviceSinkEngine->setSinkSequence(sequence); } +void DeviceSinkAPI::setNbItems(uint32_t nbItems) +{ + m_nbItems = nbItems; +} + void DeviceSinkAPI::setItemIndex(uint32_t index) { m_itemIndex = index; @@ -175,6 +181,38 @@ void DeviceSinkAPI::setSampleSinkPluginInstanceUI(PluginInstanceGUI *gui) m_sampleSinkPluginInstanceUI = gui; } +void DeviceSinkAPI::getDeviceEngineStateStr(QString& state) +{ + if (m_deviceSinkEngine) + { + switch(m_deviceSinkEngine->state()) + { + case DSPDeviceSinkEngine::StNotStarted: + state = "notStarted"; + break; + case DSPDeviceSinkEngine::StIdle: + state = "idle"; + break; + case DSPDeviceSinkEngine::StReady: + state = "ready"; + break; + case DSPDeviceSinkEngine::StRunning: + state = "running"; + break; + case DSPDeviceSinkEngine::StError: + state = "error"; + break; + default: + state = "notStarted"; + break; + } + } + else + { + state = "notStarted"; + } +} + void DeviceSinkAPI::loadSinkSettings(const Preset* preset) { if (preset->isSourcePreset()) diff --git a/sdrbase/device/devicesinkapi.h b/sdrbase/device/devicesinkapi.h index aebd8c67e..ed1957073 100644 --- a/sdrbase/device/devicesinkapi.h +++ b/sdrbase/device/devicesinkapi.h @@ -66,6 +66,7 @@ public: void setSampleSinkSerial(const QString& serial); void setSampleSinkDisplayName(const QString& serial); void setSampleSinkSequence(int sequence); + void setNbItems(uint32_t nbItems); void setItemIndex(uint32_t index); void setSampleSinkPluginInterface(PluginInterface *iface); void setSampleSinkPluginInstanceUI(PluginInstanceGUI *gui); @@ -75,9 +76,11 @@ public: const QString& getSampleSinkSerial() const { return m_sampleSinkSerial; } const QString& getSampleSinkDisplayName() const { return m_sampleSinkDisplayName; } uint32_t getSampleSinkSequence() const { return m_sampleSinkSequence; } + uint32_t getNbItems() const { return m_nbItems; } uint32_t getItemIndex() const { return m_itemIndex; } PluginInterface *getPluginInterface() { return m_pluginInterface; } PluginInstanceGUI *getSampleSinkPluginInstanceGUI() { return m_sampleSinkPluginInstanceUI; } + void getDeviceEngineStateStr(QString& state); void registerChannelInstance(const QString& channelName, PluginInstanceGUI* pluginGUI); void removeChannelInstance(PluginInstanceGUI* pluginGUI); @@ -111,7 +114,8 @@ protected: QString m_sampleSinkSerial; //!< The device serial number defined by the vendor QString m_sampleSinkDisplayName; //!< The human readable name identifying this instance uint32_t m_sampleSinkSequence; //!< The device sequence. >0 when more than one device of the same type is connected - uint32_t m_itemIndex; //!< The Rx stream index. Can be >0 for NxM devices (i.e. 0 or 1 for LimeSDR) + uint32_t m_nbItems; //!< Number of items or streams in the device. Can be >1 for NxM devices (i.e. 2 for LimeSDR) + uint32_t m_itemIndex; //!< The Tx stream index. Can be >0 for NxM devices (i.e. 0 or 1 for LimeSDR) PluginInterface* m_pluginInterface; PluginInstanceGUI* m_sampleSinkPluginInstanceUI; diff --git a/sdrbase/device/devicesourceapi.cpp b/sdrbase/device/devicesourceapi.cpp index fe058ceb4..5119296bb 100644 --- a/sdrbase/device/devicesourceapi.cpp +++ b/sdrbase/device/devicesourceapi.cpp @@ -27,6 +27,7 @@ DeviceSourceAPI::DeviceSourceAPI(int deviceTabIndex, m_deviceTabIndex(deviceTabIndex), m_deviceSourceEngine(deviceSourceEngine), m_sampleSourceSequence(0), + m_nbItems(1), m_itemIndex(0), m_pluginInterface(0), m_sampleSourcePluginInstanceUI(0), @@ -152,6 +153,11 @@ void DeviceSourceAPI::setSampleSourceSequence(int sequence) m_deviceSourceEngine->setSourceSequence(sequence); } +void DeviceSourceAPI::setNbItems(uint32_t nbItems) +{ + m_nbItems = nbItems; +} + void DeviceSourceAPI::setItemIndex(uint32_t index) { m_itemIndex = index; @@ -167,6 +173,38 @@ void DeviceSourceAPI::setSampleSourcePluginInstanceGUI(PluginInstanceGUI *gui) m_sampleSourcePluginInstanceUI = gui; } +void DeviceSourceAPI::getDeviceEngineStateStr(QString& state) +{ + if (m_deviceSourceEngine) + { + switch(m_deviceSourceEngine->state()) + { + case DSPDeviceSourceEngine::StNotStarted: + state = "notStarted"; + break; + case DSPDeviceSourceEngine::StIdle: + state = "idle"; + break; + case DSPDeviceSourceEngine::StReady: + state = "ready"; + break; + case DSPDeviceSourceEngine::StRunning: + state = "running"; + break; + case DSPDeviceSourceEngine::StError: + state = "error"; + break; + default: + state = "notStarted"; + break; + } + } + else + { + state = "notStarted"; + } +} + void DeviceSourceAPI::loadSourceSettings(const Preset* preset) { if (preset->isSourcePreset()) diff --git a/sdrbase/device/devicesourceapi.h b/sdrbase/device/devicesourceapi.h index 516b0c61e..9e6f52867 100644 --- a/sdrbase/device/devicesourceapi.h +++ b/sdrbase/device/devicesourceapi.h @@ -66,6 +66,7 @@ public: void setSampleSourceSerial(const QString& serial); void setSampleSourceDisplayName(const QString& serial); void setSampleSourceSequence(int sequence); + void setNbItems(uint32_t nbItems); void setItemIndex(uint32_t index); void setSampleSourcePluginInterface(PluginInterface *iface); void setSampleSourcePluginInstanceGUI(PluginInstanceGUI *gui); @@ -75,9 +76,11 @@ public: const QString& getSampleSourceSerial() const { return m_sampleSourceSerial; } const QString& getSampleSourceDisplayName() const { return m_sampleSourceDisplayName; } uint32_t getSampleSourceSequence() const { return m_sampleSourceSequence; } + uint32_t getNbItems() const { return m_nbItems; } uint32_t getItemIndex() const { return m_itemIndex; } PluginInterface *getPluginInterface() { return m_pluginInterface; } PluginInstanceGUI *getSampleSourcePluginInstanceGUI() { return m_sampleSourcePluginInstanceUI; } + void getDeviceEngineStateStr(QString& state); void loadSourceSettings(const Preset* preset); void saveSourceSettings(Preset* preset); @@ -107,6 +110,7 @@ protected: QString m_sampleSourceSerial; //!< The device serial number defined by the vendor or a fake one (SDRplay) QString m_sampleSourceDisplayName; //!< The human readable name identifying this instance uint32_t m_sampleSourceSequence; //!< The device sequence. >0 when more than one device of the same type is connected + uint32_t m_nbItems; //!< Number of items or streams in the device. Can be >1 for NxM devices (i.e. 2 for LimeSDR) uint32_t m_itemIndex; //!< The Rx stream index. Can be >0 for NxM devices (i.e. 0 or 1 for LimeSDR) PluginInterface* m_pluginInterface; PluginInstanceGUI* m_sampleSourcePluginInstanceUI; diff --git a/sdrbase/plugin/plugininterface.h b/sdrbase/plugin/plugininterface.h index 822952fc1..9299f08fb 100644 --- a/sdrbase/plugin/plugininterface.h +++ b/sdrbase/plugin/plugininterface.h @@ -42,6 +42,7 @@ public: int sequence; //!< The device sequence. >0 when more than one device of the same type is connected SamplingDeviceType type; //!< The sampling device type for behavior information bool rxElseTx; //!< This is the Rx part else the Tx part of the device + int deviceNbItems; //!< Number of items (or streams) in the device. >1 for composite devices. int deviceItemIndex; //!< For composite devices this is the Rx or Tx stream index. -1 if not initialized int claimed; //!< This is the device set index if claimed else -1 @@ -52,6 +53,7 @@ public: int _sequence, SamplingDeviceType _type, bool _rxElseTx, + int _deviceNbItems, int _deviceItemIndex) : displayedName(_displayedName), hardwareId(_hardwareId), @@ -60,6 +62,7 @@ public: sequence(_sequence), type(_type), rxElseTx(_rxElseTx), + deviceNbItems(_deviceNbItems), deviceItemIndex(_deviceItemIndex), claimed(-1) { } diff --git a/sdrbase/webapi/webapirequestmapper.cpp b/sdrbase/webapi/webapirequestmapper.cpp index 0e5f3c316..4e573951b 100644 --- a/sdrbase/webapi/webapirequestmapper.cpp +++ b/sdrbase/webapi/webapirequestmapper.cpp @@ -38,18 +38,26 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http if (path == WebAPIAdapterInterface::instanceSummaryURL) { - Swagger::SWGInstanceSummaryResponse normalResponse; - Swagger::SWGErrorResponse errorResponse; + if (request.getMethod() == "GET") + { + Swagger::SWGInstanceSummaryResponse normalResponse; + Swagger::SWGErrorResponse errorResponse; - int status = m_adapter->instanceSummary(normalResponse, errorResponse); + int status = m_adapter->instanceSummary(normalResponse, errorResponse); - if (status == 200) { - response.write(normalResponse.asJson().toUtf8()); - } else { - response.write(errorResponse.asJson().toUtf8()); - } + if (status == 200) { + response.write(normalResponse.asJson().toUtf8()); + } else { + response.write(errorResponse.asJson().toUtf8()); + } - response.setStatus(status); + response.setStatus(status); + } + else + { + response.write("Invalid HTTP method"); + response.setStatus(405,"Invalid HTTP method"); + } } else { diff --git a/sdrgui/mainwindow.cpp b/sdrgui/mainwindow.cpp index c9f73ff25..4adb77666 100644 --- a/sdrgui/mainwindow.cpp +++ b/sdrgui/mainwindow.cpp @@ -162,6 +162,7 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse PluginInterface::SamplingDevice samplingDevice = DeviceEnumerator::instance()->getRxSamplingDevice(deviceIndex); m_deviceUIs.back()->m_deviceSourceAPI->setSampleSourceSequence(samplingDevice.sequence); + m_deviceUIs.back()->m_deviceSourceAPI->setNbItems(samplingDevice.deviceItemIndex); m_deviceUIs.back()->m_deviceSourceAPI->setItemIndex(samplingDevice.deviceItemIndex); m_deviceUIs.back()->m_deviceSourceAPI->setHardwareId(samplingDevice.hardwareId); m_deviceUIs.back()->m_deviceSourceAPI->setSampleSourceId(samplingDevice.id); @@ -265,6 +266,7 @@ void MainWindow::addSourceDevice() int fileSourceDeviceIndex = DeviceEnumerator::instance()->getFileSourceDeviceIndex(); PluginInterface::SamplingDevice samplingDevice = DeviceEnumerator::instance()->getRxSamplingDevice(fileSourceDeviceIndex); m_deviceUIs.back()->m_deviceSourceAPI->setSampleSourceSequence(samplingDevice.sequence); + m_deviceUIs.back()->m_deviceSourceAPI->setNbItems(samplingDevice.deviceNbItems); m_deviceUIs.back()->m_deviceSourceAPI->setItemIndex(samplingDevice.deviceItemIndex); m_deviceUIs.back()->m_deviceSourceAPI->setHardwareId(samplingDevice.hardwareId); m_deviceUIs.back()->m_deviceSourceAPI->setSampleSourceId(samplingDevice.id); @@ -335,6 +337,7 @@ void MainWindow::addSinkDevice() int fileSinkDeviceIndex = DeviceEnumerator::instance()->getFileSinkDeviceIndex(); PluginInterface::SamplingDevice samplingDevice = DeviceEnumerator::instance()->getTxSamplingDevice(fileSinkDeviceIndex); m_deviceUIs.back()->m_deviceSinkAPI->setSampleSinkSequence(samplingDevice.sequence); + m_deviceUIs.back()->m_deviceSinkAPI->setNbItems(samplingDevice.deviceNbItems); m_deviceUIs.back()->m_deviceSinkAPI->setItemIndex(samplingDevice.deviceItemIndex); m_deviceUIs.back()->m_deviceSinkAPI->setHardwareId(samplingDevice.hardwareId); m_deviceUIs.back()->m_deviceSinkAPI->setSampleSinkId(samplingDevice.id); @@ -933,6 +936,7 @@ void MainWindow::on_sampleSource_changed() PluginInterface::SamplingDevice samplingDevice = DeviceEnumerator::instance()->getRxSamplingDevice(deviceUI->m_samplingDeviceControl->getSelectedDeviceIndex()); deviceUI->m_deviceSourceAPI->setSampleSourceSequence(samplingDevice.sequence); + deviceUI->m_deviceSourceAPI->setNbItems(samplingDevice.deviceNbItems); deviceUI->m_deviceSourceAPI->setItemIndex(samplingDevice.deviceItemIndex); deviceUI->m_deviceSourceAPI->setHardwareId(samplingDevice.hardwareId); deviceUI->m_deviceSourceAPI->setSampleSourceId(samplingDevice.id); @@ -1020,6 +1024,7 @@ void MainWindow::on_sampleSink_changed() PluginInterface::SamplingDevice samplingDevice = DeviceEnumerator::instance()->getTxSamplingDevice(deviceUI->m_samplingDeviceControl->getSelectedDeviceIndex()); deviceUI->m_deviceSinkAPI->setSampleSinkSequence(samplingDevice.sequence); + deviceUI->m_deviceSinkAPI->setNbItems(samplingDevice.deviceNbItems); deviceUI->m_deviceSinkAPI->setItemIndex(samplingDevice.deviceItemIndex); deviceUI->m_deviceSinkAPI->setHardwareId(samplingDevice.hardwareId); deviceUI->m_deviceSinkAPI->setSampleSinkId(samplingDevice.id); diff --git a/sdrgui/webapi/webapiadaptergui.cpp b/sdrgui/webapi/webapiadaptergui.cpp index 195cabade..a294f7919 100644 --- a/sdrgui/webapi/webapiadaptergui.cpp +++ b/sdrgui/webapi/webapiadaptergui.cpp @@ -19,10 +19,18 @@ #include #include "mainwindow.h" -#include "webapiadaptergui.h" +#include "loggerwithfile.h" +#include "device/devicesourceapi.h" +#include "device/devicesinkapi.h" +#include "device/deviceuiset.h" +#include "dsp/devicesamplesource.h" +#include "dsp/devicesamplesink.h" + #include "SWGInstanceSummaryResponse.h" #include "SWGErrorResponse.h" +#include "webapiadaptergui.h" + WebAPIAdapterGUI::WebAPIAdapterGUI(MainWindow& mainWindow) : m_mainWindow(mainWindow) { @@ -38,8 +46,67 @@ int WebAPIAdapterGUI::instanceSummary( { *response.getVersion() = qApp->applicationVersion(); + + Swagger::SWGLoggingInfo *logging = response.getLogging(); + logging->init(); + logging->setDumpToFile(m_mainWindow.m_logger->getUseFileLogger()); + if (logging->getDumpToFile()) { + m_mainWindow.m_logger->getLogFileName(*logging->getFileName()); + m_mainWindow.m_logger->getFileMinMessageLevelStr(*logging->getFileLevel()); + } + m_mainWindow.m_logger->getConsoleMinMessageLevelStr(*logging->getConsoleLevel()); + Swagger::SWGDeviceSetList *deviceSetList = response.getDevicesetlist(); - deviceSetList->setDevicesetcount(0); + deviceSetList->init(); + deviceSetList->setDevicesetcount((int) m_mainWindow.m_deviceUIs.size()); + + std::vector::const_iterator it = m_mainWindow.m_deviceUIs.begin(); + + for (int i = 0; it != m_mainWindow.m_deviceUIs.end(); ++it, i++) + { + QList *deviceSet = deviceSetList->getDeviceSets(); + deviceSet->append(new Swagger::SWGDeviceSet()); + Swagger::SWGSamplingDevice *samplingDevice = deviceSet->back()->getSamplingDevice(); + samplingDevice->init(); + samplingDevice->setIndex(i); + samplingDevice->setTx((*it)->m_deviceSinkEngine != 0); + + if ((*it)->m_deviceSinkEngine) // Tx data + { + *samplingDevice->getHwType() = (*it)->m_deviceSinkAPI->getHardwareId(); + *samplingDevice->getSerial() = (*it)->m_deviceSinkAPI->getSampleSinkSerial(); + samplingDevice->setSequence((*it)->m_deviceSinkAPI->getSampleSinkSequence()); + samplingDevice->setNbStreams((*it)->m_deviceSinkAPI->getNbItems()); + samplingDevice->setStreamIndex((*it)->m_deviceSinkAPI->getItemIndex()); + (*it)->m_deviceSinkAPI->getDeviceEngineStateStr(*samplingDevice->getState()); + DeviceSampleSink *sampleSink = (*it)->m_deviceSinkEngine->getSink(); + + if (sampleSink) { + samplingDevice->setCenterFrequency(sampleSink->getCenterFrequency()); + samplingDevice->setBandwidth(sampleSink->getSampleRate()); + } + + deviceSet->back()->setChannelcount(0); + } + + if ((*it)->m_deviceSourceEngine) // Rx data + { + *samplingDevice->getHwType() = (*it)->m_deviceSourceAPI->getHardwareId(); + *samplingDevice->getSerial() = (*it)->m_deviceSourceAPI->getSampleSourceSerial(); + samplingDevice->setSequence((*it)->m_deviceSourceAPI->getSampleSourceSequence()); + samplingDevice->setNbStreams((*it)->m_deviceSourceAPI->getNbItems()); + samplingDevice->setStreamIndex((*it)->m_deviceSourceAPI->getItemIndex()); + (*it)->m_deviceSourceAPI->getDeviceEngineStateStr(*samplingDevice->getState()); + DeviceSampleSource *sampleSource = (*it)->m_deviceSourceEngine->getSource(); + + if (sampleSource) { + samplingDevice->setCenterFrequency(sampleSource->getCenterFrequency()); + samplingDevice->setBandwidth(sampleSource->getSampleRate()); + } + + deviceSet->back()->setChannelcount(0); + } + } return 200; } diff --git a/swagger/sdrangel/api/swagger/swagger.yaml b/swagger/sdrangel/api/swagger/swagger.yaml index b36dbf3c3..901285127 100644 --- a/swagger/sdrangel/api/swagger/swagger.yaml +++ b/swagger/sdrangel/api/swagger/swagger.yaml @@ -561,6 +561,7 @@ definitions: - serial - centerFrequency - bandwidth + - state properties: index: description: "Index in the list of device sets opened in this instance" @@ -590,6 +591,9 @@ definitions: bandwidth: description: "Bandwidth in Hz or complex S/s of baseband" type: integer + state: + description: "State: notStarted, idle, ready, running, error" + type: string Channel: description: "Channel summarized information" required: diff --git a/swagger/sdrangel/code/html2/.swagger-codegen/VERSION b/swagger/sdrangel/code/html2/.swagger-codegen/VERSION new file mode 100644 index 000000000..6b4d15773 --- /dev/null +++ b/swagger/sdrangel/code/html2/.swagger-codegen/VERSION @@ -0,0 +1 @@ +2.2.3 \ No newline at end of file diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html index 14f1dfe12..e8f7bfde0 100644 --- a/swagger/sdrangel/code/html2/index.html +++ b/swagger/sdrangel/code/html2/index.html @@ -6,17 +6,14 @@ - - - - - - + + - - - - + -
+
-
- + +
+
+
+

SDRangel

+
+
-
-
-
-

SDRangel

-
-
-
- -
- - -
-

Default

- - - - - - - -
- -
-
-

instanceAudioGet

-
-
- -
-
- -

-

Get audio devices list available to this instance

-

-
- -
/sdrangel/audio
- -

-

Usage and SDK Samples

-

- - - -
-
-

-curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/audio"
-
-
-
-
- -
-

-import io.swagger.client.*;
+        
+        
+
+

Default

+
+
+
+

instanceAudioGet

+

+
+
+
+

+

Get audio devices list available to this instance

+

+
+
/sdrangel/audio
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://localhost:10010/sdrangel/audio"
+
+
+
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .DefaultApi;
+import io.swagger.client.api.DefaultApi;
 
 import java.io.File;
 import java.util.*;
@@ -1304,15 +1253,11 @@ public class DefaultApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                                                  
-
- +}
+
-
-

-import .DefaultApi;
+                          
+
import io.swagger.client.api.DefaultApi;
 
 public class DefaultApiExample {
 
@@ -1326,21 +1271,14 @@ public class DefaultApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                                                  
-
- - - - -
-

-
-
+}
+
+ +
+

 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
 [apiInstance instanceAudioGetWithCompletionHandler: 
@@ -1352,14 +1290,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
+
+
-
-
-
-

-var  = require('');
+                            
+
var SdRangel = require('sd_rangel');
 
-var api = new .DefaultApi()
+var api = new SdRangel.DefaultApi()
 
 var callback = function(error, data, response) {
   if (error) {
@@ -1369,21 +1306,18 @@ var callback = function(error, data, response) {
   }
 };
 api.instanceAudioGet(callback);
+
+
-
-
- - - -
-

-using System;
+                            
+                            
+
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -1406,17 +1340,14 @@ namespace Example
         }
     }
 }
+
+
-
-
- - -
-

-
+                              
<?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\DefaultApi();
+$api_instance = new Swagger\Client\Api\DefaultApi();
 
 try {
     $result = $api_instance->instanceAudioGet();
@@ -1424,270 +1355,187 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling DefaultApi->instanceAudioGet: ', $e->getMessage(), PHP_EOL;
 }
+?>
+
- -
- -
- - - - - -

Parameters

- - - - - - - - -

Responses

- -

Status: 200 - Success

- - +
+
use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
 
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
 
+eval { 
+    my $result = $api_instance->instanceAudioGet();
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling DefaultApi->instanceAudioGet: $@\n";
+}
+
+
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
 
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
 
+try: 
+    api_response = api_instance.instance_audio_get()
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling DefaultApi->instanceAudioGet: %s\n" % e)
+
+
+

Parameters

-
-
+

Responses

+

Status: 200 - Success

+ - -
- - - - - - - -
- - - - -
- - - - -

Status: 0 - Error

- - - - - - - - - -
- - - -
- - - - -
- - +
+ +
+
+ +

Status: 500 - Error

+ + + +
+
+
+ -
- - - - - - - -
- - - - -
- - - - - - - - - - - -
- -
- - - - - - - - -
- -
-
-

instanceAudioPatch

-
-
- -
-
- -

-

Set audio devices

-

-
- -
/sdrangel/audio
- -

-

Usage and SDK Samples

-

- - - -
-
-

-curl -X patch -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/audio"
-
-
-
-
- -
-

-import io.swagger.client.*;
+                                        var schema = schemaWrapper.schema;
+                                        if (schema.$ref != null) {
+                                          schema = defsParser.$refs.get(schema.$ref);
+                                        } else {
+                                          schemaWrapper.definitions = Object.assign({}, defs);
+                                          $RefParser.dereference(schemaWrapper).catch(function(err) {
+                                            console.log(err);
+                                          });
+                                        }
+
+                                        //console.log(JSON.stringify(schema));
+                                        var view = new JSONSchemaView(schema, 3);
+                                        $('#responses-instanceAudioGet-500-schema-data').val(stringify(schema));
+                                        var result = $('#responses-instanceAudioGet-500-schema-500');
+                                        result.empty();
+                                        result.append(view.render());
+                                      });
+                                    
+                                  
+ +
+
+ +

Status: 501 - Function not implemented

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

instanceAudioPatch

+

+
+
+
+

+

Set audio devices

+

+
+
/sdrangel/audio
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PATCH "http://localhost:10010/sdrangel/audio"
+
+
+
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .DefaultApi;
+import io.swagger.client.api.DefaultApi;
 
 import java.io.File;
 import java.util.*;
@@ -1706,15 +1554,11 @@ public class DefaultApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                                                  
-
+}
+
- -
-

-import .DefaultApi;
+                          
+
import io.swagger.client.api.DefaultApi;
 
 public class DefaultApiExample {
 
@@ -1729,21 +1573,14 @@ public class DefaultApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                                                  
-
- - - - -
-

-
-AudioDevicesSelect *body = ; // Select audio devices to use for this instance
+}
+
+ +
+
AudioDevicesSelect *body = ; // Select audio devices to use for this instance
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -1756,14 +1593,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
+
+
-
-
-
-

-var  = require('');
+                            
+
var SdRangel = require('sd_rangel');
 
-var api = new .DefaultApi()
+var api = new SdRangel.DefaultApi()
 
 var body = ; // {AudioDevicesSelect} Select audio devices to use for this instance
 
@@ -1776,21 +1612,18 @@ var callback = function(error, data, response) {
   }
 };
 api.instanceAudioPatch(body, callback);
+
+
-
-
- - - -
-

-using System;
+                            
+                            
+
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -1814,17 +1647,14 @@ namespace Example
         }
     }
 }
+
+
-
-
- - -
-

-
+                              
<?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\DefaultApi();
+$api_instance = new Swagger\Client\Api\DefaultApi();
 $body = ; // AudioDevicesSelect | Select audio devices to use for this instance
 
 try {
@@ -1833,37 +1663,62 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling DefaultApi->instanceAudioPatch: ', $e->getMessage(), PHP_EOL;
 }
+?>
+
- -
- -
- - - +
+
use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
 
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $body = WWW::SwaggerClient::Object::AudioDevicesSelect->new(); # AudioDevicesSelect | Select audio devices to use for this instance
 
-                                            

Parameters

- - - - - - -
Body parameters
- - - - - - - +eval { + my $result = $api_instance->instanceAudioPatch(body => $body); + print Dumper($result); +}; +if ($@) { + warn "Exception when calling DefaultApi->instanceAudioPatch: $@\n"; +} + + +
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+# create an instance of the API class
+api_instance = swagger_client.DefaultApi()
+body =  # AudioDevicesSelect | Select audio devices to use for this instance
+
+try: 
+    api_response = api_instance.instance_audio_patch(body)
+    pprint(api_response)
+except ApiException as e:
+    print("Exception when calling DefaultApi->instanceAudioPatch: %s\n" % e)
+
+ + +

Parameters

+ + + +
Body parameters
+
NameDescription
body *
+ + + + + - -
NameDescription
body * -
+ var view = new JSONSchemaView(schema,2,{isBodyParam: true}); + var result = $('#d2e199_instanceAudioPatch_body'); + result.empty(); + result.append(view.render()); +}); + +
- - -

Responses

- -

Status: 200 - Success

- - +

Responses

+

Status: 200 - Success

+ - - - -
- - - -
- - - - -
- - -
- - - - - - - -
- - - - -
- - - - -

Status: 0 - Error

- - - - - - - - - -
- - - -
- - - - -
- - +
+ +
+
+ +

Status: 500 - Error

+ + + +
+
+
+ -
- - - - - - - -
- - - - -
- - - - - - - - - - - -
- -
- - - - - - - - -
- -
-
-

instanceChannels

-
-
- -
-
- -

-

Get a list of channel plugins available in this instance

-

-
- -
/sdrangel/channels
- -

-

Usage and SDK Samples

-

- - - -
-
-

-curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/channels?tx="
-
-
-
-
- -
-

-import io.swagger.client.*;
+                                        var schema = schemaWrapper.schema;
+                                        if (schema.$ref != null) {
+                                          schema = defsParser.$refs.get(schema.$ref);
+                                        } else {
+                                          schemaWrapper.definitions = Object.assign({}, defs);
+                                          $RefParser.dereference(schemaWrapper).catch(function(err) {
+                                            console.log(err);
+                                          });
+                                        }
+
+                                        //console.log(JSON.stringify(schema));
+                                        var view = new JSONSchemaView(schema, 3);
+                                        $('#responses-instanceAudioPatch-500-schema-data').val(stringify(schema));
+                                        var result = $('#responses-instanceAudioPatch-500-schema-500');
+                                        result.empty();
+                                        result.append(view.render());
+                                      });
+                                    
+                                  
+ +
+
+ +

Status: 501 - Function not implemented

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

instanceChannels

+

+
+
+
+

+

Get a list of channel plugins available in this instance

+

+
+
/sdrangel/channels
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X GET "http://localhost:10010/sdrangel/channels?tx="
+
+
+
import io.swagger.client.*;
 import io.swagger.client.auth.*;
 import io.swagger.client.model.*;
-import .DefaultApi;
+import io.swagger.client.api.DefaultApi;
 
 import java.io.File;
 import java.util.*;
@@ -2168,15 +1906,11 @@ public class DefaultApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                                                  
-
- +}
+
-
-

-import .DefaultApi;
+                          
+
import io.swagger.client.api.DefaultApi;
 
 public class DefaultApiExample {
 
@@ -2191,21 +1925,14 @@ public class DefaultApiExample {
             e.printStackTrace();
         }
     }
-}
-
-                                                  
-
- - - - -
-

-
-Boolean *tx = true; // Set to true for Tx channels (optional)
+}
+
+ +
+
Boolean *tx = true; // Set to true for Tx channels (optional)
 
 DefaultApi *apiInstance = [[DefaultApi alloc] init];
 
@@ -2218,14 +1945,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
                                 NSLog(@"Error: %@", error);
                             }
                         }];
+
+
-
-
-
-

-var  = require('');
+                            
+
var SdRangel = require('sd_rangel');
 
-var api = new .DefaultApi()
+var api = new SdRangel.DefaultApi()
 
 var opts = { 
   'tx': true // {Boolean} Set to true for Tx channels
@@ -2239,21 +1965,18 @@ var callback = function(error, data, response) {
   }
 };
 api.instanceChannels(opts, callback);
+
+
-
-
- - - -
-

-using System;
+                            
+                            
+
using System;
 using System.Diagnostics;
-using .Api;
-using .Client;
-using ;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
 
 namespace Example
 {
@@ -2277,17 +2000,14 @@ namespace Example
         }
     }
 }
+
+
-
-
- - -
-

-
+                              
<?php
 require_once(__DIR__ . '/vendor/autoload.php');
 
-$api_instance = new io.swagger.client\Api\DefaultApi();
+$api_instance = new Swagger\Client\Api\DefaultApi();
 $tx = true; // Boolean | Set to true for Tx channels
 
 try {
@@ -2296,311 +2016,1162 @@ try {
 } catch (Exception $e) {
     echo 'Exception when calling DefaultApi->instanceChannels: ', $e->getMessage(), PHP_EOL;
 }
+?>
+
- -
- -
- +
+
use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::DefaultApi;
 
+my $api_instance = WWW::SwaggerClient::DefaultApi->new();
+my $tx = true; # Boolean | Set to true for Tx channels
 
+eval { 
+    my $result = $api_instance->instanceChannels(tx => $tx);
+    print Dumper($result);
+};
+if ($@) {
+    warn "Exception when calling DefaultApi->instanceChannels: $@\n";
+}
+
+
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
 
-                                            

Parameters

+# create an instance of the API class +api_instance = swagger_client.DefaultApi() +tx = true # Boolean | Set to true for Tx channels (optional) +try: + api_response = api_instance.instance_channels(tx=tx) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->instanceChannels: %s\n" % e)
+
+ +

Parameters

-
Query parameters
- - - - - - - +
Query parameters
+
NameDescription
tx
+ + + + + - + -
NameDescription
tx - -
-
+
+
+
+ +
+ +
+
+ +

Status: 500 - Error

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

Status: 501 - Function not implemented

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

instanceDVSerialPatch

+

+
+
+
+

+

Set or reset DV serial processing for AMBE frames decoding in digital voice modes

+

+
+
/sdrangel/dvserial
+

+

Usage and SDK Samples

+

+ + +
+
+
curl -X PATCH "http://localhost:10010/sdrangel/dvserial?dvserial="
+
+
+
import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.DefaultApi;
 
-                                            

Responses

+import java.io.File; +import java.util.*; -

Status: 200 - Success

+public class DefaultApiExample { -
+
-
  • - Schema -
  • +
    +
    import io.swagger.client.api.DefaultApi;
     
    +public class DefaultApiExample {
     
    -                                                
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        Boolean dvserial = true; // Boolean | Set to true to set DV serial processing
    +        try {
    +            DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#instanceDVSerialPatch");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    Boolean *dvserial = true; // Set to true to set DV serial processing (optional)
     
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    +[apiInstance instanceDVSerialPatchWith:dvserial
    +              completionHandler: ^(DVSeralDevices output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    +
    +
    var SdRangel = require('sd_rangel');
     
    +var api = new SdRangel.DefaultApi()
     
    +var opts = { 
    +  'dvserial': true // {Boolean} Set to true to set DV serial processing
    +};
     
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceDVSerialPatch(opts, callback);
    +
    +
    -
    + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
    +namespace Example
    +{
    +    public class instanceDVSerialPatchExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DefaultApi();
    +            var dvserial = true;  // Boolean | Set to true to set DV serial processing (optional) 
     
    +            try
    +            {
    +                DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.instanceDVSerialPatch: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    -
    +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
     
    +$api_instance = new Swagger\Client\Api\DefaultApi();
    +$dvserial = true; // Boolean | Set to true to set DV serial processing
     
    +try {
    +    $result = $api_instance->instanceDVSerialPatch($dvserial);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->instanceDVSerialPatch: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    -                                                        
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new(); +my $dvserial = true; # Boolean | Set to true to set DV serial processing - -
    - +
    Query parameters
    + + + + + + + + +
    NameDescription
    dvserial +
    +
    +
    + + Boolean + +
    + Set to true to set DV serial processing +
    +
    +
    +
    +
    -
    +

    Responses

    +

    Status: 200 - On success return list of devices or empty list if unset

    + +
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

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

    Status: 501 - Function not implemented

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

    instanceDeviceSetsDelete

    +

    +
    +
    +
    +

    +

    Remove last device set

    +

    +
    +
    /sdrangel/devicesets
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X DELETE "http://localhost:10010/sdrangel/devicesets"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
     
    -                                                
    - - - - -

    Status: 0 - Error

    - -
    - +
    +
    import io.swagger.client.api.DefaultApi;
     
    +public class DefaultApiExample {
     
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            DeviceSetList result = apiInstance.instanceDeviceSetsDelete();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#instanceDeviceSetsDelete");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    +[apiInstance instanceDeviceSetsDeleteWithCompletionHandler: 
    +              ^(DeviceSetList output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    +
    +
    var SdRangel = require('sd_rangel');
     
    +var api = new SdRangel.DefaultApi()
     
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceDeviceSetsDelete(callback);
    +
    +
    -
    + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
    +namespace Example
    +{
    +    public class instanceDeviceSetsDeleteExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DefaultApi();
     
    +            try
    +            {
    +                DeviceSetList result = apiInstance.instanceDeviceSetsDelete();
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.instanceDeviceSetsDelete: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    -
    +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
     
    +$api_instance = new Swagger\Client\Api\DefaultApi();
     
    +try {
    +    $result = $api_instance->instanceDeviceSetsDelete();
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->instanceDeviceSetsDelete: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    -                                                        
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new(); - -
    - +

    Responses

    +

    Status: 200 - On success return new list of device sets

    + -
    - +
    +
    +
    + +
    + +
    +
    + +

    Status: 404 - No more device sets opened in this instance

    + + + +
    +
    + +

    Status: 500 - Error

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

    Status: 501 - Function not implemented

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

    instanceDeviceSetsGet

    +

    +
    +
    +
    +

    +

    Get summary information about device sets opened in the instance

    +

    +
    +
    /sdrangel/devicesets
    +

    +

    Usage and SDK Samples

    +

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

    instanceDVSerialPatch

    -
    -
    +

    Parameters

    -
    -
    -

    -

    Set or reset DV serial processing for AMBE frames decoding in digital voice modes

    -

    -
    -
    /sdrangel/dvserial
    -

    -

    Usage and SDK Samples

    -

    - -
    -
    -
    
    -curl -X patch -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/dvserial?dvserial="
    +                          

    Responses

    +

    Status: 200 - On success return device set list

    +
    -
    + -
    -
    
    -import io.swagger.client.*;
    +                            
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

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

    Status: 501 - Function not implemented

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

    instanceDeviceSetsPost

    +

    +
    +
    +
    +

    +

    Add (append) a new device set

    +

    +
    +
    /sdrangel/devicesets
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST "http://localhost:10010/sdrangel/devicesets?tx="
    +
    +
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import .DefaultApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
    @@ -2610,58 +3181,47 @@ public class DefaultApiExample {
         public static void main(String[] args) {
             
             DefaultApi apiInstance = new DefaultApi();
    -        Boolean dvserial = true; // Boolean | Set to true to set DV serial processing
    +        Boolean tx = true; // Boolean | Set to true for a Tx device set
             try {
    -            DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
    +            DeviceSet result = apiInstance.instanceDeviceSetsPost(tx);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDVSerialPatch");
    +            System.err.println("Exception when calling DefaultApi#instanceDeviceSetsPost");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    +}
    +
    - -
    -
    
    -import .DefaultApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
     public class DefaultApiExample {
     
         public static void main(String[] args) {
             DefaultApi apiInstance = new DefaultApi();
    -        Boolean dvserial = true; // Boolean | Set to true to set DV serial processing
    +        Boolean tx = true; // Boolean | Set to true for a Tx device set
             try {
    -            DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
    +            DeviceSet result = apiInstance.instanceDeviceSetsPost(tx);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDVSerialPatch");
    +            System.err.println("Exception when calling DefaultApi#instanceDeviceSetsPost");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -Boolean *dvserial = true; // Set to true to set DV serial processing (optional)
    +}
    +
    + +
    +
    Boolean *tx = true; // Set to true for a Tx device set (optional)
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance instanceDVSerialPatchWith:dvserial
    -              completionHandler: ^(DVSeralDevices output, NSError* error) {
    +[apiInstance instanceDeviceSetsPostWith:tx
    +              completionHandler: ^(DeviceSet output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -2669,17 +3229,16 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
                                     NSLog(@"Error: %@", error);
                                 }
                             }];
    +
    +
    -
    -
    -
    -
    
    -var  = require('');
    +                            
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new .DefaultApi()
    +var api = new SdRangel.DefaultApi()
     
     var opts = { 
    -  'dvserial': true // {Boolean} Set to true to set DV serial processing
    +  'tx': true // {Boolean} Set to true for a Tx device set
     };
     
     var callback = function(error, data, response) {
    @@ -2689,369 +3248,606 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDVSerialPatch(opts, callback);
    -
    -                                                    
    -
    - - +api.instanceDeviceSetsPost(opts, callback); +
    +
    -
    -
    
    -using System;
    +                            
    +                            
    +
    using System;
     using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class instanceDVSerialPatchExample
    +    public class instanceDeviceSetsPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new DefaultApi();
    -            var dvserial = true;  // Boolean | Set to true to set DV serial processing (optional) 
    +            var tx = true;  // Boolean | Set to true for a Tx device set (optional) 
     
                 try
                 {
    -                DVSeralDevices result = apiInstance.instanceDVSerialPatch(dvserial);
    +                DeviceSet result = apiInstance.instanceDeviceSetsPost(tx);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.instanceDVSerialPatch: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.instanceDeviceSetsPost: " + e.Message );
                 }
             }
         }
     }
    +
    +
    -
    -
    - - -
    -
    
    -
    +                              
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new io.swagger.client\Api\DefaultApi();
    -$dvserial = true; // Boolean | Set to true to set DV serial processing
    +$api_instance = new Swagger\Client\Api\DefaultApi();
    +$tx = true; // Boolean | Set to true for a Tx device set
     
     try {
    -    $result = $api_instance->instanceDVSerialPatch($dvserial);
    +    $result = $api_instance->instanceDeviceSetsPost($tx);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceDVSerialPatch: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->instanceDeviceSetsPost: ', $e->getMessage(), PHP_EOL;
     }
    +?>
    +
    - -
    - - - +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $tx = true; # Boolean | Set to true for a Tx device set
     
    +eval { 
    +    my $result = $api_instance->instanceDeviceSetsPost(tx => $tx);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->instanceDeviceSetsPost: $@\n";
    +}
    +
    +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
     
    -                                            

    Parameters

    +# create an instance of the API class +api_instance = swagger_client.DefaultApi() +tx = true # Boolean | Set to true for a Tx device set (optional) +try: + api_response = api_instance.instance_device_sets_post(tx=tx) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->instanceDeviceSetsPost: %s\n" % e)
    +
    + +

    Parameters

    -
    Query parameters
    - - - - - - - +
    Query parameters
    +
    NameDescription
    dvserial
    + + + + + -
    NameDescription
    tx - -
    +
    + Set to true for a Tx device set +
    + + +
    - -

    Responses

    - -

    Status: 200 - On success return list of devices or empty list if unset

    - - - + +

    Responses

    +

    Status: 200 - On success return new device set

    + - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 0 - Error

    - - - - - - - - - -
    - - - -
    - - - - -
    - - +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + -
    - - + var schema = schemaWrapper.schema; + if (schema.$ref != null) { + schema = defsParser.$refs.get(schema.$ref); + } else { + schemaWrapper.definitions = Object.assign({}, defs); + $RefParser.dereference(schemaWrapper).catch(function(err) { + console.log(err); + }); + } + + //console.log(JSON.stringify(schema)); + var view = new JSONSchemaView(schema, 3); + $('#responses-instanceDeviceSetsPost-500-schema-data').val(stringify(schema)); + var result = $('#responses-instanceDeviceSetsPost-500-schema-500'); + result.empty(); + result.append(view.render()); + }); + +
    + +
    + + +

    Status: 501 - Function not implemented

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

    instanceDevices

    +

    +
    +
    +
    +

    +

    Get a list of sampling devices that can be used to take part in a device set

    +

    +
    +
    /sdrangel/devices
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost:10010/sdrangel/devices?tx="
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
     
    +import java.io.File;
    +import java.util.*;
     
    +public class DefaultApiExample {
     
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        Boolean tx = true; // Boolean | Set to true for Tx direction
    +        try {
    +            InstanceDevicesResponse result = apiInstance.instanceDevices(tx);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#instanceDevices");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    +
    +
    import io.swagger.client.api.DefaultApi;
     
    -                                                    
    +public class DefaultApiExample { + public static void main(String[] args) { + DefaultApi apiInstance = new DefaultApi(); + Boolean tx = true; // Boolean | Set to true for Tx direction + try { + InstanceDevicesResponse result = apiInstance.instanceDevices(tx); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#instanceDevices"); + e.printStackTrace(); + } + } +} +
    + +
    +
    Boolean *tx = true; // Set to true for Tx direction (optional)
     
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    +[apiInstance instanceDevicesWith:tx
    +              completionHandler: ^(InstanceDevicesResponse output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    -
    +
    +
    var SdRangel = require('sd_rangel');
     
    +var api = new SdRangel.DefaultApi()
     
    +var opts = { 
    +  'tx': true // {Boolean} Set to true for Tx direction
    +};
     
    +var callback = function(error, data, response) {
    +  if (error) {
    +    console.error(error);
    +  } else {
    +    console.log('API called successfully. Returned data: ' + data);
    +  }
    +};
    +api.instanceDevices(opts, callback);
    +
    +
    + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
    +namespace Example
    +{
    +    public class instanceDevicesExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DefaultApi();
    +            var tx = true;  // Boolean | Set to true for Tx direction (optional) 
     
    +            try
    +            {
    +                InstanceDevicesResponse result = apiInstance.instanceDevices(tx);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.instanceDevices: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
     
    +$api_instance = new Swagger\Client\Api\DefaultApi();
    +$tx = true; // Boolean | Set to true for Tx direction
     
    -                                        
    +try {
    +    $result = $api_instance->instanceDevices($tx);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->instanceDevices: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    - +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    -                                    
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new(); +my $tx = true; # Boolean | Set to true for Tx direction +eval { + my $result = $api_instance->instanceDevices(tx => $tx); + print Dumper($result); +}; +if ($@) { + warn "Exception when calling DefaultApi->instanceDevices: $@\n"; +}
    +
    +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
     
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +tx = true # Boolean | Set to true for Tx direction (optional)
     
    +try: 
    +    api_response = api_instance.instance_devices(tx=tx)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->instanceDevices: %s\n" % e)
    +
    + +

    Parameters

    -
    -
    -
    -

    instanceDeviceSetsDelete

    -
    -
    -
    -
    +
    Query parameters
    + + + + + + + + - +
    NameDescription
    tx -

    -

    Remove last device set

    -

    -
    -
    /sdrangel/devicesets
    +
    +
    +
    + + Boolean + -

    -

    Usage and SDK Samples

    -

    +
    + Set to true for Tx direction +
    +
    +
    +
    +
    -
    -
    -
    
    -curl -X delete -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/devicesets"
    +                          

    Responses

    +

    Status: 200 - Success

    +
    -
    + -
    -
    
    -import io.swagger.client.*;
    +                            
    +
    +
    + +
    + +
    +
    + +

    Status: 500 - Error

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

    Status: 501 - Function not implemented

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

    instanceLocationGet

    +

    +
    +
    +
    +

    +

    Get instance geolocation information

    +

    +
    +
    /sdrangel/location
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost:10010/sdrangel/location"
    +
    +
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import .DefaultApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
    @@ -3062,54 +3858,43 @@ public class DefaultApiExample {
             
             DefaultApi apiInstance = new DefaultApi();
             try {
    -            DeviceSetList result = apiInstance.instanceDeviceSetsDelete();
    +            LocationInformation result = apiInstance.instanceLocationGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDeviceSetsDelete");
    +            System.err.println("Exception when calling DefaultApi#instanceLocationGet");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    - +}
    +
    -
    -
    
    -import .DefaultApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
     public class DefaultApiExample {
     
         public static void main(String[] args) {
             DefaultApi apiInstance = new DefaultApi();
             try {
    -            DeviceSetList result = apiInstance.instanceDeviceSetsDelete();
    +            LocationInformation result = apiInstance.instanceLocationGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDeviceSetsDelete");
    +            System.err.println("Exception when calling DefaultApi#instanceLocationGet");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -
    +}
    +
    + +
    +
    
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance instanceDeviceSetsDeleteWithCompletionHandler: 
    -              ^(DeviceSetList output, NSError* error) {
    +[apiInstance instanceLocationGetWithCompletionHandler: 
    +              ^(LocationInformation output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -3117,14 +3902,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
                                     NSLog(@"Error: %@", error);
                                 }
                             }];
    +
    +
    -
    -
    -
    -
    
    -var  = require('');
    +                            
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new .DefaultApi()
    +var api = new SdRangel.DefaultApi()
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -3133,26 +3917,23 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDeviceSetsDelete(callback);
    -
    -                                                    
    -
    - - +api.instanceLocationGet(callback); +
    +
    -
    -
    
    -using System;
    +                            
    +                            
    +
    using System;
     using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class instanceDeviceSetsDeleteExample
    +    public class instanceLocationGetExample
         {
             public void main()
             {
    @@ -3161,374 +3942,572 @@ namespace Example
     
                 try
                 {
    -                DeviceSetList result = apiInstance.instanceDeviceSetsDelete();
    +                LocationInformation result = apiInstance.instanceLocationGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.instanceDeviceSetsDelete: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.instanceLocationGet: " + e.Message );
                 }
             }
         }
     }
    +
    +
    -
    -
    - - -
    -
    
    -
    +                              
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new io.swagger.client\Api\DefaultApi();
    +$api_instance = new Swagger\Client\Api\DefaultApi();
     
     try {
    -    $result = $api_instance->instanceDeviceSetsDelete();
    +    $result = $api_instance->instanceLocationGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceDeviceSetsDelete: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->instanceLocationGet: ', $e->getMessage(), PHP_EOL;
     }
    +?>
    +
    - -
    - - +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
    +eval { 
    +    my $result = $api_instance->instanceLocationGet();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->instanceLocationGet: $@\n";
    +}
    +
    +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
     
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
     
    -                                            

    Parameters

    +try: + api_response = api_instance.instance_location_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->instanceLocationGet: %s\n" % e)
    +
    + +

    Parameters

    +

    Responses

    +

    Status: 200 - On success return location

    -

    Responses

    + - + public static void main(String[] args) { + + DefaultApi apiInstance = new DefaultApi(); + LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude + try { + LocationInformation result = apiInstance.instanceLocationPut(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#instanceLocationPut"); + e.printStackTrace(); + } + } +} + +
    +
    import io.swagger.client.api.DefaultApi;
     
    +public class DefaultApiExample {
     
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
    +        try {
    +            LocationInformation result = apiInstance.instanceLocationPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#instanceLocationPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    LocationInformation *body = ; // Location of instance in latitude and longitude
     
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    +[apiInstance instanceLocationPutWith:body
    +              completionHandler: ^(LocationInformation output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    +
    +
    var SdRangel = require('sd_rangel');
     
    -                                                
    - - - -
    - - +var api = new SdRangel.DefaultApi() +var body = ; // {LocationInformation} Location of instance in latitude and longitude -
    - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - No more device sets opened in this instance

    - - - - - - - - +api.instanceLocationPut(body, callback); +
    +
    -
    + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
    +namespace Example
    +{
    +    public class instanceLocationPutExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DefaultApi();
    +            var body = new LocationInformation(); // LocationInformation | Location of instance in latitude and longitude
     
    +            try
    +            {
    +                LocationInformation result = apiInstance.instanceLocationPut(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.instanceLocationPut: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    -
    +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
     
    +$api_instance = new Swagger\Client\Api\DefaultApi();
    +$body = ; // LocationInformation | Location of instance in latitude and longitude
     
    +try {
    +    $result = $api_instance->instanceLocationPut($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->instanceLocationPut: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    -                                                        
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new(); +my $body = WWW::SwaggerClient::Object::LocationInformation->new(); # LocationInformation | Location of instance in latitude and longitude - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 0 - Error

    - - - - - - - +if ($@) { + warn "Exception when calling DefaultApi->instanceLocationPut: $@\n"; +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +body =  # LocationInformation | Location of instance in latitude and longitude
    +
    +try: 
    +    api_response = api_instance.instance_location_put(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->instanceLocationPut: %s\n" % e)
    +
    + + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + +
    NameDescription
    body * -
    + +
    +
    -
    +

    Responses

    +

    Status: 200 - On success return location

    + - +
    + + + + +

    Status: 400 - Location invalid

    + + + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    instanceDeviceSetsGet

    -
    -
    - -
    -
    - -

    -

    Get summary information about device sets opened in the instance

    -

    -
    - -
    /sdrangel/devicesets
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/devicesets"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                                        var schema = schemaWrapper.schema;
    +                                        if (schema.$ref != null) {
    +                                          schema = defsParser.$refs.get(schema.$ref);
    +                                        } else {
    +                                          schemaWrapper.definitions = Object.assign({}, defs);
    +                                          $RefParser.dereference(schemaWrapper).catch(function(err) {
    +                                            console.log(err);
    +                                          });
    +                                        }
    +
    +                                        //console.log(JSON.stringify(schema));
    +                                        var view = new JSONSchemaView(schema, 3);
    +                                        $('#responses-instanceLocationPut-500-schema-data').val(stringify(schema));
    +                                        var result = $('#responses-instanceLocationPut-500-schema-500');
    +                                        result.empty();
    +                                        result.append(view.render());
    +                                      });
    +                                    
    +                                  
    + +
    +
    + +

    Status: 501 - Function not implemented

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

    instanceLoggingGet

    +

    +
    +
    +
    +

    +

    Get logging information for this instance

    +

    +
    +
    /sdrangel/logging
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost:10010/sdrangel/logging"
    +
    +
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import .DefaultApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
    @@ -3539,54 +4518,43 @@ public class DefaultApiExample {
             
             DefaultApi apiInstance = new DefaultApi();
             try {
    -            DeviceSetList result = apiInstance.instanceDeviceSetsGet();
    +            LoggingInfo result = apiInstance.instanceLoggingGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDeviceSetsGet");
    +            System.err.println("Exception when calling DefaultApi#instanceLoggingGet");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    - +}
    +
    -
    -
    
    -import .DefaultApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
     public class DefaultApiExample {
     
         public static void main(String[] args) {
             DefaultApi apiInstance = new DefaultApi();
             try {
    -            DeviceSetList result = apiInstance.instanceDeviceSetsGet();
    +            LoggingInfo result = apiInstance.instanceLoggingGet();
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDeviceSetsGet");
    +            System.err.println("Exception when calling DefaultApi#instanceLoggingGet");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -
    +}
    +
    + +
    +
    
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance instanceDeviceSetsGetWithCompletionHandler: 
    -              ^(DeviceSetList output, NSError* error) {
    +[apiInstance instanceLoggingGetWithCompletionHandler: 
    +              ^(LoggingInfo output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -3594,14 +4562,13 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
                                     NSLog(@"Error: %@", error);
                                 }
                             }];
    +
    +
    -
    -
    -
    -
    
    -var  = require('');
    +                            
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new .DefaultApi()
    +var api = new SdRangel.DefaultApi()
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -3610,26 +4577,23 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDeviceSetsGet(callback);
    -
    -                                                    
    -
    - - +api.instanceLoggingGet(callback); +
    +
    -
    -
    
    -using System;
    +                            
    +                            
    +
    using System;
     using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class instanceDeviceSetsGetExample
    +    public class instanceLoggingGetExample
         {
             public void main()
             {
    @@ -3638,298 +4602,572 @@ namespace Example
     
                 try
                 {
    -                DeviceSetList result = apiInstance.instanceDeviceSetsGet();
    +                LoggingInfo result = apiInstance.instanceLoggingGet();
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.instanceDeviceSetsGet: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.instanceLoggingGet: " + e.Message );
                 }
             }
         }
     }
    +
    +
    -
    -
    - - -
    -
    
    -
    +                              
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new io.swagger.client\Api\DefaultApi();
    +$api_instance = new Swagger\Client\Api\DefaultApi();
     
     try {
    -    $result = $api_instance->instanceDeviceSetsGet();
    +    $result = $api_instance->instanceLoggingGet();
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceDeviceSetsGet: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->instanceLoggingGet: ', $e->getMessage(), PHP_EOL;
     }
    +?>
    +
    - -
    - - - - - - - -

    Parameters

    - - - +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
    +eval { 
    +    my $result = $api_instance->instanceLoggingGet();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->instanceLoggingGet: $@\n";
    +}
    +
    +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
     
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
     
    -                                            

    Responses

    +try: + api_response = api_instance.instance_logging_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->instanceLoggingGet: %s\n" % e)
    +
    + -

    Status: 200 - On success return device set list

    +

    Parameters

    - +

    Responses

    +

    Status: 200 - Success

    + - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 0 - Error

    - - - - - - - - - -
    - - - -
    - - - - -
    - - +
    + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + -
    - - - - - - - -
    - + var schema = schemaWrapper.schema; + if (schema.$ref != null) { + schema = defsParser.$refs.get(schema.$ref); + } else { + schemaWrapper.definitions = Object.assign({}, defs); + $RefParser.dereference(schemaWrapper).catch(function(err) { + console.log(err); + }); + } + + //console.log(JSON.stringify(schema)); + var view = new JSONSchemaView(schema, 3); + $('#responses-instanceLoggingGet-500-schema-data').val(stringify(schema)); + var result = $('#responses-instanceLoggingGet-500-schema-500'); + result.empty(); + result.append(view.render()); + }); + +
    + + + + +

    Status: 501 - Function not implemented

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

    instanceLoggingPut

    +

    +
    +
    +
    +

    +

    Change logging parmeters for this instance

    +

    +
    +
    /sdrangel/logging
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PUT "http://localhost:10010/sdrangel/logging"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
     
    +import java.io.File;
    +import java.util.*;
     
    +public class DefaultApiExample {
     
    -                                                
    + public static void main(String[] args) { + + DefaultApi apiInstance = new DefaultApi(); + LoggingInfo body = ; // LoggingInfo | Logging information + try { + LoggingInfo result = apiInstance.instanceLoggingPut(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#instanceLoggingPut"); + e.printStackTrace(); + } + } +} +
    +
    +
    import io.swagger.client.api.DefaultApi;
     
    +public class DefaultApiExample {
     
    +    public static void main(String[] args) {
    +        DefaultApi apiInstance = new DefaultApi();
    +        LoggingInfo body = ; // LoggingInfo | Logging information
    +        try {
    +            LoggingInfo result = apiInstance.instanceLoggingPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#instanceLoggingPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    + +
    +
    LoggingInfo *body = ; // Logging information
     
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    +[apiInstance instanceLoggingPutWith:body
    +              completionHandler: ^(LoggingInfo output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    +
    +
    var SdRangel = require('sd_rangel');
     
    +var api = new SdRangel.DefaultApi()
     
    +var body = ; // {LoggingInfo} Logging information
     
    -                                        
    -
    +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +api.instanceLoggingPut(body, callback); + + -
    + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
    +namespace Example
    +{
    +    public class instanceLoggingPutExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DefaultApi();
    +            var body = new LoggingInfo(); // LoggingInfo | Logging information
     
    +            try
    +            {
    +                LoggingInfo result = apiInstance.instanceLoggingPut(body);
    +                Debug.WriteLine(result);
    +            }
    +            catch (Exception e)
    +            {
    +                Debug.Print("Exception when calling DefaultApi.instanceLoggingPut: " + e.Message );
    +            }
    +        }
    +    }
    +}
    +
    +
    +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
     
    +$api_instance = new Swagger\Client\Api\DefaultApi();
    +$body = ; // LoggingInfo | Logging information
     
    +try {
    +    $result = $api_instance->instanceLoggingPut($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->instanceLoggingPut: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $body = WWW::SwaggerClient::Object::LoggingInfo->new(); # LoggingInfo | Logging information
     
    -                                    
    +eval { + my $result = $api_instance->instanceLoggingPut(body => $body); + print Dumper($result); +}; +if ($@) { + warn "Exception when calling DefaultApi->instanceLoggingPut: $@\n"; +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +body =  # LoggingInfo | Logging information
    +
    +try: 
    +    api_response = api_instance.instance_logging_put(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->instanceLoggingPut: %s\n" % e)
    +
    + + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + -
    /sdrangel/devicesets
    +
    NameDescription
    body * -
    -
    -

    instanceDeviceSetsPost

    -
    -
    -
    -
    + +
    +
    -

    -

    Usage and SDK Samples

    -

    - -
    -
    -
    
    -curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/devicesets?tx="
    +                          

    Responses

    +

    Status: 200 - Return new data on success

    +
    -
    + -
    -
    
    -import io.swagger.client.*;
    +                            
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invallid data

    + + + +
    +
    + +

    Status: 500 - Error

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

    Status: 501 - Function not implemented

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

    instancePresetDelete

    +

    +
    +
    +
    +

    +

    Deletes a preset

    +

    +
    +
    /sdrangel/preset
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X DELETE "http://localhost:10010/sdrangel/preset"
    +
    +
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import .DefaultApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
    @@ -3939,58 +5177,47 @@ public class DefaultApiExample {
         public static void main(String[] args) {
             
             DefaultApi apiInstance = new DefaultApi();
    -        Boolean tx = true; // Boolean | Set to true for a Tx device set
    +        PresetIdentifier body = ; // PresetIdentifier | delete this preset
             try {
    -            DeviceSet result = apiInstance.instanceDeviceSetsPost(tx);
    +            PresetIdentifier result = apiInstance.instancePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDeviceSetsPost");
    +            System.err.println("Exception when calling DefaultApi#instancePresetDelete");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    - +}
    +
    -
    -
    
    -import .DefaultApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
     public class DefaultApiExample {
     
         public static void main(String[] args) {
             DefaultApi apiInstance = new DefaultApi();
    -        Boolean tx = true; // Boolean | Set to true for a Tx device set
    +        PresetIdentifier body = ; // PresetIdentifier | delete this preset
             try {
    -            DeviceSet result = apiInstance.instanceDeviceSetsPost(tx);
    +            PresetIdentifier result = apiInstance.instancePresetDelete(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDeviceSetsPost");
    +            System.err.println("Exception when calling DefaultApi#instancePresetDelete");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -Boolean *tx = true; // Set to true for a Tx device set (optional)
    +}
    +
    + +
    +
    PresetIdentifier *body = ; // delete this preset
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance instanceDeviceSetsPostWith:tx
    -              completionHandler: ^(DeviceSet output, NSError* error) {
    +[apiInstance instancePresetDeleteWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -3998,18 +5225,16 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
                                     NSLog(@"Error: %@", error);
                                 }
                             }];
    +
    +
    -
    -
    -
    -
    
    -var  = require('');
    +                            
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new .DefaultApi()
    +var api = new SdRangel.DefaultApi()
    +
    +var body = ; // {PresetIdentifier} delete this preset
     
    -var opts = { 
    -  'tx': true // {Boolean} Set to true for a Tx device set
    -};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -4018,369 +5243,599 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDeviceSetsPost(opts, callback);
    -
    -                                                    
    -
    - - +api.instancePresetDelete(body, callback); +
    +
    -
    -
    
    -using System;
    +                            
    +                            
    +
    using System;
     using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class instanceDeviceSetsPostExample
    +    public class instancePresetDeleteExample
         {
             public void main()
             {
                 
                 var apiInstance = new DefaultApi();
    -            var tx = true;  // Boolean | Set to true for a Tx device set (optional) 
    +            var body = new PresetIdentifier(); // PresetIdentifier | delete this preset
     
                 try
                 {
    -                DeviceSet result = apiInstance.instanceDeviceSetsPost(tx);
    +                PresetIdentifier result = apiInstance.instancePresetDelete(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.instanceDeviceSetsPost: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.instancePresetDelete: " + e.Message );
                 }
             }
         }
     }
    +
    +
    -
    -
    - - -
    -
    
    -
    +                              
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new io.swagger.client\Api\DefaultApi();
    -$tx = true; // Boolean | Set to true for a Tx device set
    +$api_instance = new Swagger\Client\Api\DefaultApi();
    +$body = ; // PresetIdentifier | delete this preset
     
     try {
    -    $result = $api_instance->instanceDeviceSetsPost($tx);
    +    $result = $api_instance->instancePresetDelete($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceDeviceSetsPost: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->instancePresetDelete: ', $e->getMessage(), PHP_EOL;
     }
    +?>
    +
    - -
    - -
    +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $body = WWW::SwaggerClient::Object::PresetIdentifier->new(); # PresetIdentifier | delete this preset
     
    +eval { 
    +    my $result = $api_instance->instancePresetDelete(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->instancePresetDelete: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +body =  # PresetIdentifier | delete this preset
    +
    +try: 
    +    api_response = api_instance.instance_preset_delete(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->instancePresetDelete: %s\n" % e)
    +
    + + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + +
    NameDescription
    body * + +
    +
    +

    Responses

    +

    Status: 200 - On success return deleted preset identification

    + -
    Query parameters
    - - - - - - - - - - -
    NameDescription
    tx - - - -
    -
    - -

    Responses

    - -

    Status: 200 - On success return new device set

    - - - - - - - - - -
    - - - -
    - - - - -
    - - +
    + +
    +
    + +

    Status: 400 - Invalid frequency

    + + + +
    +
    + +

    Status: 404 - Preset not found

    + + + +
    +
    + +

    Status: 500 - Error

    + + + +
    +
    +
    + -
    - - + var schema = schemaWrapper.schema; + if (schema.$ref != null) { + schema = defsParser.$refs.get(schema.$ref); + } else { + schemaWrapper.definitions = Object.assign({}, defs); + $RefParser.dereference(schemaWrapper).catch(function(err) { + console.log(err); + }); + } + + //console.log(JSON.stringify(schema)); + var view = new JSONSchemaView(schema, 3); + $('#responses-instancePresetDelete-500-schema-data').val(stringify(schema)); + var result = $('#responses-instancePresetDelete-500-schema-500'); + result.empty(); + result.append(view.render()); + }); + +
    + +
    + + +

    Status: 501 - Function not implemented

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

    instancePresetGet

    +

    +
    +
    +
    +

    +

    List all presets in the instance

    +

    +
    +
    /sdrangel/preset
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X GET "http://localhost:10010/sdrangel/preset"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
     
    +import java.io.File;
    +import java.util.*;
     
    +public class DefaultApiExample {
     
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        try {
    +            Presets result = apiInstance.instancePresetGet();
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#instancePresetGet");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    +
    +
    import io.swagger.client.api.DefaultApi;
     
    -                                                    
    +public class DefaultApiExample { + public static void main(String[] args) { + DefaultApi apiInstance = new DefaultApi(); + try { + Presets result = apiInstance.instancePresetGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#instancePresetGet"); + e.printStackTrace(); + } + } +} +
    + +
    +
    
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    +[apiInstance instancePresetGetWithCompletionHandler: 
    +              ^(Presets output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    +
    +
    var SdRangel = require('sd_rangel');
     
    -                                                
    +var api = new SdRangel.DefaultApi() +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +api.instancePresetGet(callback); + +
    + +
    +
    using System;
    +using System.Diagnostics;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
    +namespace Example
    +{
    +    public class instancePresetGetExample
    +    {
    +        public void main()
    +        {
    +            
    +            var apiInstance = new DefaultApi();
     
    -                                                

    Status: 0 - Error

    + try + { + Presets result = apiInstance.instancePresetGet(); + Debug.WriteLine(result); + } + catch (Exception e) + { + Debug.Print("Exception when calling DefaultApi.instancePresetGet: " + e.Message ); + } + } + } +} +
    +
    - +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
     
    +eval { 
    +    my $result = $api_instance->instancePresetGet();
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->instancePresetGet: $@\n";
    +}
    +
    +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
     
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
     
    +try: 
    +    api_response = api_instance.instance_preset_get()
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->instancePresetGet: %s\n" % e)
    +
    + +

    Parameters

    -
    -
    +

    Responses

    +

    Status: 200 - On success return preset list

    + - +
    + +
    + + +

    Status: 500 - Error

    + + + +
    +
    +
    + -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - - - -
    - - - - - - - - -
    - -
    -
    -

    instanceDevices

    -
    -
    - -
    -
    - -

    -

    Get a list of sampling devices that can be used to take part in a device set

    -

    -
    - -
    /sdrangel/devices
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/devices?tx="
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    +                                        var schema = schemaWrapper.schema;
    +                                        if (schema.$ref != null) {
    +                                          schema = defsParser.$refs.get(schema.$ref);
    +                                        } else {
    +                                          schemaWrapper.definitions = Object.assign({}, defs);
    +                                          $RefParser.dereference(schemaWrapper).catch(function(err) {
    +                                            console.log(err);
    +                                          });
    +                                        }
    +
    +                                        //console.log(JSON.stringify(schema));
    +                                        var view = new JSONSchemaView(schema, 3);
    +                                        $('#responses-instancePresetGet-500-schema-data').val(stringify(schema));
    +                                        var result = $('#responses-instancePresetGet-500-schema-500');
    +                                        result.empty();
    +                                        result.append(view.render());
    +                                      });
    +                                    
    +                                  
    + +
    +
    + +

    Status: 501 - Function not implemented

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

    instancePresetPatch

    +

    +
    +
    +
    +

    +

    Load a preset in a device set

    +

    +
    +
    /sdrangel/preset
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PATCH "http://localhost:10010/sdrangel/preset"
    +
    +
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import .DefaultApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
    @@ -4390,58 +5845,47 @@ public class DefaultApiExample {
         public static void main(String[] args) {
             
             DefaultApi apiInstance = new DefaultApi();
    -        Boolean tx = true; // Boolean | Set to true for Tx direction
    +        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
             try {
    -            InstanceDevicesResponse result = apiInstance.instanceDevices(tx);
    +            PresetIdentifier result = apiInstance.instancePresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDevices");
    +            System.err.println("Exception when calling DefaultApi#instancePresetPatch");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    +}
    +
    - -
    -
    
    -import .DefaultApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
     public class DefaultApiExample {
     
         public static void main(String[] args) {
             DefaultApi apiInstance = new DefaultApi();
    -        Boolean tx = true; // Boolean | Set to true for Tx direction
    +        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
             try {
    -            InstanceDevicesResponse result = apiInstance.instanceDevices(tx);
    +            PresetIdentifier result = apiInstance.instancePresetPatch(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceDevices");
    +            System.err.println("Exception when calling DefaultApi#instancePresetPatch");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -Boolean *tx = true; // Set to true for Tx direction (optional)
    +}
    +
    + +
    +
    PresetTransfer *body = ; // Load preset settings to the device set
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance instanceDevicesWith:tx
    -              completionHandler: ^(InstanceDevicesResponse output, NSError* error) {
    +[apiInstance instancePresetPatchWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -4449,18 +5893,16 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
                                     NSLog(@"Error: %@", error);
                                 }
                             }];
    +
    +
    -
    -
    -
    -
    
    -var  = require('');
    +                            
    +
    var SdRangel = require('sd_rangel');
     
    -var api = new .DefaultApi()
    +var api = new SdRangel.DefaultApi()
    +
    +var body = ; // {PresetTransfer} Load preset settings to the device set
     
    -var opts = { 
    -  'tx': true // {Boolean} Set to true for Tx direction
    -};
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -4469,4870 +5911,334 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceDevices(opts, callback);
    -
    -                                                    
    -
    - - +api.instancePresetPatch(body, callback); +
    +
    -
    -
    
    -using System;
    +                            
    +                            
    +
    using System;
     using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class instanceDevicesExample
    +    public class instancePresetPatchExample
         {
             public void main()
             {
                 
                 var apiInstance = new DefaultApi();
    -            var tx = true;  // Boolean | Set to true for Tx direction (optional) 
    +            var body = new PresetTransfer(); // PresetTransfer | Load preset settings to the device set
     
                 try
                 {
    -                InstanceDevicesResponse result = apiInstance.instanceDevices(tx);
    +                PresetIdentifier result = apiInstance.instancePresetPatch(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.instanceDevices: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.instancePresetPatch: " + e.Message );
                 }
             }
         }
     }
    +
    +
    -
    -
    - - -
    -
    
    -
    +                              
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new io.swagger.client\Api\DefaultApi();
    -$tx = true; // Boolean | Set to true for Tx direction
    +$api_instance = new Swagger\Client\Api\DefaultApi();
    +$body = ; // PresetTransfer | Load preset settings to the device set
     
     try {
    -    $result = $api_instance->instanceDevices($tx);
    +    $result = $api_instance->instancePresetPatch($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceDevices: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->instancePresetPatch: ', $e->getMessage(), PHP_EOL;
     }
    +?>
    +
    - -
    - - +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $body = WWW::SwaggerClient::Object::PresetTransfer->new(); # PresetTransfer | Load preset settings to the device set
     
    -
    -
    -
    -                                            

    Parameters

    - - - - - - - -
    Query parameters
    - - - - - - - +eval { + my $result = $api_instance->instancePresetPatch(body => $body); + print Dumper($result); +}; +if ($@) { + warn "Exception when calling DefaultApi->instancePresetPatch: $@\n"; +} + + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +body =  # PresetTransfer | Load preset settings to the device set
    +
    +try: 
    +    api_response = api_instance.instance_preset_patch(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->instancePresetPatch: %s\n" % e)
    +
    + + +

    Parameters

    + + + +
    Body parameters
    +
    NameDescription
    tx
    + + + + + - - -
    NameDescription
    body * -
    -
    - -

    Responses

    - -

    Status: 200 - Success

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 0 - Error

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - - - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instanceLocationGet

    -
    -
    - -
    -
    - -

    -

    Get instance geolocation information

    -

    -
    - -
    /sdrangel/location
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/location"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import .DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        try {
    -            LocationInformation result = apiInstance.instanceLocationGet();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceLocationGet");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - -
    -
    
    -import .DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        try {
    -            LocationInformation result = apiInstance.instanceLocationGet();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceLocationGet");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance instanceLocationGetWithCompletionHandler: 
    -              ^(LocationInformation output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -                                                    
    -
    -
    -
    
    -var  = require('');
    -
    -var api = new .DefaultApi()
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.instanceLocationGet(callback);
    -
    -                                                    
    -
    - - - -
    -
    
    -using System;
    -using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    -
    -namespace Example
    -{
    -    public class instanceLocationGetExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DefaultApi();
    -
    -            try
    -            {
    -                LocationInformation result = apiInstance.instanceLocationGet();
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.instanceLocationGet: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -                                                    
    -
    - - -
    -
    
    -instanceLocationGet();
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceLocationGet: ', $e->getMessage(), PHP_EOL;
    -}
    -
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - - - -

    Responses

    - -

    Status: 200 - On success return location

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 0 - Error

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - -
    - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instanceLocationPut

    -
    -
    - -
    -
    - -

    -

    Set instance geolocation information

    -

    -
    - -
    /sdrangel/location
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/location"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import .DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
    -        try {
    -            LocationInformation result = apiInstance.instanceLocationPut(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceLocationPut");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - -
    -
    
    -import .DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        LocationInformation body = ; // LocationInformation | Location of instance in latitude and longitude
    -        try {
    -            LocationInformation result = apiInstance.instanceLocationPut(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceLocationPut");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -LocationInformation *body = ; // Location of instance in latitude and longitude
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance instanceLocationPutWith:body
    -              completionHandler: ^(LocationInformation output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -                                                    
    -
    -
    -
    
    -var  = require('');
    -
    -var api = new .DefaultApi()
    -
    -var body = ; // {LocationInformation} Location of instance in latitude and longitude
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.instanceLocationPut(body, callback);
    -
    -                                                    
    -
    - - - -
    -
    
    -using System;
    -using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    -
    -namespace Example
    -{
    -    public class instanceLocationPutExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DefaultApi();
    -            var body = new LocationInformation(); // LocationInformation | Location of instance in latitude and longitude
    -
    -            try
    -            {
    -                LocationInformation result = apiInstance.instanceLocationPut(body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.instanceLocationPut: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -                                                    
    -
    - - -
    -
    
    -instanceLocationPut($body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceLocationPut: ', $e->getMessage(), PHP_EOL;
    -}
    -
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - -

    Responses

    - -

    Status: 200 - On success return location

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Location invalid

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 0 - Error

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - -
    - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instanceLoggingGet

    -
    -
    - -
    -
    - -

    -

    Get logging information for this instance

    -

    -
    - -
    /sdrangel/logging
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/logging"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import .DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        try {
    -            LoggingInfo result = apiInstance.instanceLoggingGet();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceLoggingGet");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - -
    -
    
    -import .DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        try {
    -            LoggingInfo result = apiInstance.instanceLoggingGet();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceLoggingGet");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance instanceLoggingGetWithCompletionHandler: 
    -              ^(LoggingInfo output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -                                                    
    -
    -
    -
    
    -var  = require('');
    -
    -var api = new .DefaultApi()
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.instanceLoggingGet(callback);
    -
    -                                                    
    -
    - - - -
    -
    
    -using System;
    -using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    -
    -namespace Example
    -{
    -    public class instanceLoggingGetExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DefaultApi();
    -
    -            try
    -            {
    -                LoggingInfo result = apiInstance.instanceLoggingGet();
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.instanceLoggingGet: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -                                                    
    -
    - - -
    -
    
    -instanceLoggingGet();
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceLoggingGet: ', $e->getMessage(), PHP_EOL;
    -}
    -
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - - - -

    Responses

    - -

    Status: 200 - Success

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 0 - Error

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - -
    - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instanceLoggingPut

    -
    -
    - -
    -
    - -

    -

    Change logging parmeters for this instance

    -

    -
    - -
    /sdrangel/logging
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/logging"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import .DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        LoggingInfo body = ; // LoggingInfo | Logging information
    -        try {
    -            LoggingInfo result = apiInstance.instanceLoggingPut(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceLoggingPut");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - -
    -
    
    -import .DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        LoggingInfo body = ; // LoggingInfo | Logging information
    -        try {
    -            LoggingInfo result = apiInstance.instanceLoggingPut(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceLoggingPut");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -LoggingInfo *body = ; // Logging information
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance instanceLoggingPutWith:body
    -              completionHandler: ^(LoggingInfo output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -                                                    
    -
    -
    -
    
    -var  = require('');
    -
    -var api = new .DefaultApi()
    -
    -var body = ; // {LoggingInfo} Logging information
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.instanceLoggingPut(body, callback);
    -
    -                                                    
    -
    - - - -
    -
    
    -using System;
    -using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    -
    -namespace Example
    -{
    -    public class instanceLoggingPutExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DefaultApi();
    -            var body = new LoggingInfo(); // LoggingInfo | Logging information
    -
    -            try
    -            {
    -                LoggingInfo result = apiInstance.instanceLoggingPut(body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.instanceLoggingPut: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -                                                    
    -
    - - -
    -
    
    -instanceLoggingPut($body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceLoggingPut: ', $e->getMessage(), PHP_EOL;
    -}
    -
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - -

    Responses

    - -

    Status: 200 - Return new data on success

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invallid data

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 0 - Error

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - -
    - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instancePresetDelete

    -
    -
    - -
    -
    - -

    -

    Deletes a preset

    -

    -
    - -
    /sdrangel/preset
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X delete -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import .DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        PresetIdentifier body = ; // PresetIdentifier | delete this preset
    -        try {
    -            PresetIdentifier result = apiInstance.instancePresetDelete(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetDelete");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - -
    -
    
    -import .DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        PresetIdentifier body = ; // PresetIdentifier | delete this preset
    -        try {
    -            PresetIdentifier result = apiInstance.instancePresetDelete(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetDelete");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -PresetIdentifier *body = ; // delete this preset
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance instancePresetDeleteWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -                                                    
    -
    -
    -
    
    -var  = require('');
    -
    -var api = new .DefaultApi()
    -
    -var body = ; // {PresetIdentifier} delete this preset
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.instancePresetDelete(body, callback);
    -
    -                                                    
    -
    - - - -
    -
    
    -using System;
    -using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    -
    -namespace Example
    -{
    -    public class instancePresetDeleteExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DefaultApi();
    -            var body = new PresetIdentifier(); // PresetIdentifier | delete this preset
    -
    -            try
    -            {
    -                PresetIdentifier result = apiInstance.instancePresetDelete(body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.instancePresetDelete: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -                                                    
    -
    - - -
    -
    
    -instancePresetDelete($body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instancePresetDelete: ', $e->getMessage(), PHP_EOL;
    -}
    -
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - -

    Responses

    - -

    Status: 200 - On success return deleted preset identification

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid frequency

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - Preset not found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - -
    - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instancePresetGet

    -
    -
    - -
    -
    - -

    -

    List all presets in the instance

    -

    -
    - -
    /sdrangel/preset
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import .DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        try {
    -            Presets result = apiInstance.instancePresetGet();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetGet");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - -
    -
    
    -import .DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        try {
    -            Presets result = apiInstance.instancePresetGet();
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetGet");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance instancePresetGetWithCompletionHandler: 
    -              ^(Presets output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -                                                    
    -
    -
    -
    
    -var  = require('');
    -
    -var api = new .DefaultApi()
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.instancePresetGet(callback);
    -
    -                                                    
    -
    - - - -
    -
    
    -using System;
    -using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    -
    -namespace Example
    -{
    -    public class instancePresetGetExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DefaultApi();
    -
    -            try
    -            {
    -                Presets result = apiInstance.instancePresetGet();
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.instancePresetGet: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -                                                    
    -
    - - -
    -
    
    -instancePresetGet();
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instancePresetGet: ', $e->getMessage(), PHP_EOL;
    -}
    -
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - - - -

    Responses

    - -

    Status: 200 - On success return preset list

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 0 - Error

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - -
    - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instancePresetPatch

    -
    -
    - -
    -
    - -

    -

    Load a preset in a device set

    -

    -
    - -
    /sdrangel/preset
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X patch -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import .DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
    -        try {
    -            PresetIdentifier result = apiInstance.instancePresetPatch(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetPatch");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - -
    -
    
    -import .DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        PresetTransfer body = ; // PresetTransfer | Load preset settings to the device set
    -        try {
    -            PresetIdentifier result = apiInstance.instancePresetPatch(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetPatch");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -PresetTransfer *body = ; // Load preset settings to the device set
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance instancePresetPatchWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -                                                    
    -
    -
    -
    
    -var  = require('');
    -
    -var api = new .DefaultApi()
    -
    -var body = ; // {PresetTransfer} Load preset settings to the device set
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.instancePresetPatch(body, callback);
    -
    -                                                    
    -
    - - - -
    -
    
    -using System;
    -using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    -
    -namespace Example
    -{
    -    public class instancePresetPatchExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DefaultApi();
    -            var body = new PresetTransfer(); // PresetTransfer | Load preset settings to the device set
    -
    -            try
    -            {
    -                PresetIdentifier result = apiInstance.instancePresetPatch(body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.instancePresetPatch: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -                                                    
    -
    - - -
    -
    
    -instancePresetPatch($body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instancePresetPatch: ', $e->getMessage(), PHP_EOL;
    -}
    -
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - -

    Responses

    - -

    Status: 200 - On success return preset identification

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid frequency

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - No preset or device set found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - -
    - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instancePresetPost

    -
    -
    - -
    -
    - -

    -

    Create a new preset from a device set settings

    -

    -
    - -
    /sdrangel/preset
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X post -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import .DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
    -        try {
    -            PresetIdentifier result = apiInstance.instancePresetPost(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - -
    -
    
    -import .DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
    -        try {
    -            PresetIdentifier result = apiInstance.instancePresetPost(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetPost");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -PresetTransfer *body = ; // save device set settings on a new preset
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance instancePresetPostWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -                                                    
    -
    -
    -
    
    -var  = require('');
    -
    -var api = new .DefaultApi()
    -
    -var body = ; // {PresetTransfer} save device set settings on a new preset
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.instancePresetPost(body, callback);
    -
    -                                                    
    -
    - - - -
    -
    
    -using System;
    -using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    -
    -namespace Example
    -{
    -    public class instancePresetPostExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DefaultApi();
    -            var body = new PresetTransfer(); // PresetTransfer | save device set settings on a new preset
    -
    -            try
    -            {
    -                PresetIdentifier result = apiInstance.instancePresetPost(body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.instancePresetPost: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -                                                    
    -
    - - -
    -
    
    -instancePresetPost($body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instancePresetPost: ', $e->getMessage(), PHP_EOL;
    -}
    -
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - -

    Responses

    - -

    Status: 200 - On success return preset identification

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid frequency

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - Device set not found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 409 - Preset already exists

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - -
    - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instancePresetPut

    -
    -
    - -
    -
    - -

    -

    Save device set settings on a preset

    -

    -
    - -
    /sdrangel/preset
    - -

    -

    Usage and SDK Samples

    -

    - - - -
    -
    -
    
    -curl -X put -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel/preset"
    -
    -
    -
    -
    - -
    -
    
    -import io.swagger.client.*;
    -import io.swagger.client.auth.*;
    -import io.swagger.client.model.*;
    -import .DefaultApi;
    -
    -import java.io.File;
    -import java.util.*;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        
    -        DefaultApi apiInstance = new DefaultApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
    -        try {
    -            PresetIdentifier result = apiInstance.instancePresetPut(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetPut");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - -
    -
    
    -import .DefaultApi;
    -
    -public class DefaultApiExample {
    -
    -    public static void main(String[] args) {
    -        DefaultApi apiInstance = new DefaultApi();
    -        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
    -        try {
    -            PresetIdentifier result = apiInstance.instancePresetPut(body);
    -            System.out.println(result);
    -        } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instancePresetPut");
    -            e.printStackTrace();
    -        }
    -    }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    -PresetTransfer *body = ; // save device set settings to the preset
    -
    -DefaultApi *apiInstance = [[DefaultApi alloc] init];
    -
    -[apiInstance instancePresetPutWith:body
    -              completionHandler: ^(PresetIdentifier output, NSError* error) {
    -                            if (output) {
    -                                NSLog(@"%@", output);
    -                            }
    -                            if (error) {
    -                                NSLog(@"Error: %@", error);
    -                            }
    -                        }];
    -
    -                                                    
    -
    -
    -
    
    -var  = require('');
    -
    -var api = new .DefaultApi()
    -
    -var body = ; // {PresetTransfer} save device set settings to the preset
    -
    -
    -var callback = function(error, data, response) {
    -  if (error) {
    -    console.error(error);
    -  } else {
    -    console.log('API called successfully. Returned data: ' + data);
    -  }
    -};
    -api.instancePresetPut(body, callback);
    -
    -                                                    
    -
    - - - -
    -
    
    -using System;
    -using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    -
    -namespace Example
    -{
    -    public class instancePresetPutExample
    -    {
    -        public void main()
    -        {
    -            
    -            var apiInstance = new DefaultApi();
    -            var body = new PresetTransfer(); // PresetTransfer | save device set settings to the preset
    -
    -            try
    -            {
    -                PresetIdentifier result = apiInstance.instancePresetPut(body);
    -                Debug.WriteLine(result);
    -            }
    -            catch (Exception e)
    -            {
    -                Debug.Print("Exception when calling DefaultApi.instancePresetPut: " + e.Message );
    -            }
    -        }
    -    }
    -}
    -
    -                                                    
    -
    - - -
    -
    
    -instancePresetPut($body);
    -    print_r($result);
    -} catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instancePresetPut: ', $e->getMessage(), PHP_EOL;
    -}
    -
    -                                                  
    -
    - -
    - - - - - -

    Parameters

    - - - - - - -
    Body parameters
    - - - - - - - - - - - -
    NameDescription
    body * - - - -
    -
    - - -

    Responses

    - -

    Status: 200 - On success return preset identification

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 400 - Invalid frequency

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - -

    Status: 404 - No preset or device set found

    - - - - - - - - - -
    - - - -
    - - - - -
    - - -
    - - - - - - - -
    - - - - -
    - - - - - - - - - -
    - -
    - -
    - - - - - - - - -
    - -
    -
    -

    instanceSummary

    -
    -
    - -
    -
    +}; + var schema = schemaWrapper.schema; + if (schema.$ref != null) { + schema = defsParser.$refs.get(schema.$ref); + } else { + schemaWrapper.definitions = Object.assign({}, defs); + $RefParser.dereference(schemaWrapper).catch(function(err) { + console.log(err); + }); + } -

    -

    SDRangel instance summary

    -

    -
    + var view = new JSONSchemaView(schema,2,{isBodyParam: true}); + var result = $('#d2e199_instancePresetPatch_body'); + result.empty(); + result.append(view.render()); +}); + +
    + + -
    /sdrangel
    + -

    -

    Usage and SDK Samples

    -

    - -
    -
    -
    
    -curl -X get -H "apiKey: [[apiKey]]" -H "apiSecret: [[apiSecret]]" "http://localhost:10010//sdrangel"
    +                          

    Responses

    +

    Status: 200 - On success return preset identification

    +
    -
    + -
    -
    
    -import io.swagger.client.*;
    +                            
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid frequency

    + + + +
    +
    + +

    Status: 404 - No preset or device set found

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

    Status: 500 - Error

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

    Status: 501 - Function not implemented

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

    instancePresetPost

    +

    +
    +
    +
    +

    +

    Create a new preset from a device set settings

    +

    +
    +
    /sdrangel/preset
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X POST "http://localhost:10010/sdrangel/preset"
    +
    +
    +
    import io.swagger.client.*;
     import io.swagger.client.auth.*;
     import io.swagger.client.model.*;
    -import .DefaultApi;
    +import io.swagger.client.api.DefaultApi;
     
     import java.io.File;
     import java.util.*;
    @@ -9342,55 +6248,47 @@ public class DefaultApiExample {
         public static void main(String[] args) {
             
             DefaultApi apiInstance = new DefaultApi();
    +        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceSummary();
    +            PresetIdentifier result = apiInstance.instancePresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceSummary");
    +            System.err.println("Exception when calling DefaultApi#instancePresetPost");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    +}
    +
    - -
    -
    
    -import .DefaultApi;
    +                          
    +
    import io.swagger.client.api.DefaultApi;
     
     public class DefaultApiExample {
     
         public static void main(String[] args) {
             DefaultApi apiInstance = new DefaultApi();
    +        PresetTransfer body = ; // PresetTransfer | save device set settings on a new preset
             try {
    -            InstanceSummaryResponse result = apiInstance.instanceSummary();
    +            PresetIdentifier result = apiInstance.instancePresetPost(body);
                 System.out.println(result);
             } catch (ApiException e) {
    -            System.err.println("Exception when calling DefaultApi#instanceSummary");
    +            System.err.println("Exception when calling DefaultApi#instancePresetPost");
                 e.printStackTrace();
             }
         }
    -}
    -
    -                                                  
    -
    - - - - -
    -
    
    -
    +}
    +
    + +
    +
    PresetTransfer *body = ; // save device set settings on a new preset
     
     DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    -[apiInstance instanceSummaryWithCompletionHandler: 
    -              ^(InstanceSummaryResponse output, NSError* error) {
    +[apiInstance instancePresetPostWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
                                 if (output) {
                                     NSLog(@"%@", output);
                                 }
    @@ -9398,14 +6296,16 @@ DefaultApi *apiInstance = [[DefaultApi alloc] init];
                                     NSLog(@"Error: %@", error);
                                 }
                             }];
    +
    +
    + +
    +
    var SdRangel = require('sd_rangel');
    +
    +var api = new SdRangel.DefaultApi()
     
    -                                                    
    -
    -
    -
    
    -var  = require('');
    +var body = ; // {PresetTransfer} save device set settings on a new preset
     
    -var api = new .DefaultApi()
     
     var callback = function(error, data, response) {
       if (error) {
    @@ -9414,291 +6314,1960 @@ var callback = function(error, data, response) {
         console.log('API called successfully. Returned data: ' + data);
       }
     };
    -api.instanceSummary(callback);
    -
    -                                                    
    -
    - - +api.instancePresetPost(body, callback); +
    +
    -
    -
    
    -using System;
    +                            
    +                            
    +
    using System;
     using System.Diagnostics;
    -using .Api;
    -using .Client;
    -using ;
    +using IO.Swagger.Api;
    +using IO.Swagger.Client;
    +using IO.Swagger.Model;
     
     namespace Example
     {
    -    public class instanceSummaryExample
    +    public class instancePresetPostExample
         {
             public void main()
             {
                 
                 var apiInstance = new DefaultApi();
    +            var body = new PresetTransfer(); // PresetTransfer | save device set settings on a new preset
     
                 try
                 {
    -                InstanceSummaryResponse result = apiInstance.instanceSummary();
    +                PresetIdentifier result = apiInstance.instancePresetPost(body);
                     Debug.WriteLine(result);
                 }
                 catch (Exception e)
                 {
    -                Debug.Print("Exception when calling DefaultApi.instanceSummary: " + e.Message );
    +                Debug.Print("Exception when calling DefaultApi.instancePresetPost: " + e.Message );
                 }
             }
         }
     }
    +
    +
    -
    -
    - - -
    -
    
    -
    +                              
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    -$api_instance = new io.swagger.client\Api\DefaultApi();
    +$api_instance = new Swagger\Client\Api\DefaultApi();
    +$body = ; // PresetTransfer | save device set settings on a new preset
     
     try {
    -    $result = $api_instance->instanceSummary();
    +    $result = $api_instance->instancePresetPost($body);
         print_r($result);
     } catch (Exception $e) {
    -    echo 'Exception when calling DefaultApi->instanceSummary: ', $e->getMessage(), PHP_EOL;
    +    echo 'Exception when calling DefaultApi->instancePresetPost: ', $e->getMessage(), PHP_EOL;
     }
    +?>
    +
    - -
    - - - - - - - -

    Parameters

    - - - - - - - - -

    Responses

    - -

    Status: 200 - Success

    - - - - - - - - - -
    - - - -
    - +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $body = WWW::SwaggerClient::Object::PresetTransfer->new(); # PresetTransfer | save device set settings on a new preset
     
    +eval { 
    +    my $result = $api_instance->instancePresetPost(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->instancePresetPost: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +body =  # PresetTransfer | save device set settings on a new preset
    +
    +try: 
    +    api_response = api_instance.instance_preset_post(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->instancePresetPost: %s\n" % e)
    +
    +
    + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + +
    NameDescription
    body * -
    - +
    +
    - var view = new JSONSchemaView(resolved.schema, 3); - $('#examples-Default-instanceSummary-schema-data').val(JSON.stringify(resolved.schema)); - var result = $('#examples-Default-instanceSummary-schema-200'); - result.empty(); - result.append(view.render()); - }); +

    Responses

    +

    Status: 200 - On success return preset identification

    +
    - + +
    +
    +
    + +
    + +
    +
    + +

    Status: 400 - Invalid frequency

    + + + +
    +
    + +

    Status: 404 - Device set not found

    + + + +
    +
    + +

    Status: 409 - Preset already exists

    + + + +
    +
    + +

    Status: 500 - Error

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

    Status: 501 - Function not implemented

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

    instancePresetPut

    +

    +
    +
    +
    +

    +

    Save device set settings on a preset

    +

    +
    +
    /sdrangel/preset
    +

    +

    Usage and SDK Samples

    +

    + + +
    +
    +
    curl -X PUT "http://localhost:10010/sdrangel/preset"
    +
    +
    +
    import io.swagger.client.*;
    +import io.swagger.client.auth.*;
    +import io.swagger.client.model.*;
    +import io.swagger.client.api.DefaultApi;
     
    +import java.io.File;
    +import java.util.*;
     
    +public class DefaultApiExample {
     
    +    public static void main(String[] args) {
    +        
    +        DefaultApi apiInstance = new DefaultApi();
    +        PresetTransfer body = ; // PresetTransfer | save device set settings to the preset
    +        try {
    +            PresetIdentifier result = apiInstance.instancePresetPut(body);
    +            System.out.println(result);
    +        } catch (ApiException e) {
    +            System.err.println("Exception when calling DefaultApi#instancePresetPut");
    +            e.printStackTrace();
    +        }
    +    }
    +}
    +
    +
    +
    import io.swagger.client.api.DefaultApi;
     
    -                                                    
    +public class DefaultApiExample { + public static void main(String[] args) { + DefaultApi apiInstance = new DefaultApi(); + PresetTransfer body = ; // PresetTransfer | save device set settings to the preset + try { + PresetIdentifier result = apiInstance.instancePresetPut(body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#instancePresetPut"); + e.printStackTrace(); + } + } +} +
    + +
    +
    PresetTransfer *body = ; // save device set settings to the preset
     
    +DefaultApi *apiInstance = [[DefaultApi alloc] init];
     
    +[apiInstance instancePresetPutWith:body
    +              completionHandler: ^(PresetIdentifier output, NSError* error) {
    +                            if (output) {
    +                                NSLog(@"%@", output);
    +                            }
    +                            if (error) {
    +                                NSLog(@"Error: %@", error);
    +                            }
    +                        }];
    +
    +
    -
    +
    +
    var SdRangel = require('sd_rangel');
     
    +var api = new SdRangel.DefaultApi()
     
    +var body = ; // {PresetTransfer} save device set settings to the preset
     
     
    -                                                

    Status: 0 - Error

    +var callback = function(error, data, response) { + if (error) { + console.error(error); + } else { + console.log('API called successfully. Returned data: ' + data); + } +}; +api.instancePresetPut(body, callback); +
    +
    - +
    +
    <?php
    +require_once(__DIR__ . '/vendor/autoload.php');
     
    +$api_instance = new Swagger\Client\Api\DefaultApi();
    +$body = ; // PresetTransfer | save device set settings to the preset
     
    +try {
    +    $result = $api_instance->instancePresetPut($body);
    +    print_r($result);
    +} catch (Exception $e) {
    +    echo 'Exception when calling DefaultApi->instancePresetPut: ', $e->getMessage(), PHP_EOL;
    +}
    +?>
    +
    +
    +
    use Data::Dumper;
    +use WWW::SwaggerClient::Configuration;
    +use WWW::SwaggerClient::DefaultApi;
     
    +my $api_instance = WWW::SwaggerClient::DefaultApi->new();
    +my $body = WWW::SwaggerClient::Object::PresetTransfer->new(); # PresetTransfer | save device set settings to the preset
     
    +eval { 
    +    my $result = $api_instance->instancePresetPut(body => $body);
    +    print Dumper($result);
    +};
    +if ($@) {
    +    warn "Exception when calling DefaultApi->instancePresetPut: $@\n";
    +}
    +
    + +
    +
    from __future__ import print_statement
    +import time
    +import swagger_client
    +from swagger_client.rest import ApiException
    +from pprint import pprint
    +
    +# create an instance of the API class
    +api_instance = swagger_client.DefaultApi()
    +body =  # PresetTransfer | save device set settings to the preset
    +
    +try: 
    +    api_response = api_instance.instance_preset_put(body)
    +    pprint(api_response)
    +except ApiException as e:
    +    print("Exception when calling DefaultApi->instancePresetPut: %s\n" % e)
    +
    + + +

    Parameters

    + + + +
    Body parameters
    + + + + + + + + +
    NameDescription
    body * -
    + +
    +
    -
    +

    Responses

    +

    Status: 200 - On success return preset identification

    + - +
    + + + + +

    Status: 400 - Invalid frequency

    + + + +
    +
    + +

    Status: 404 - No preset or device set found

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

    Status: 500 - Error

    + + + +
    +
    +
    + -
    - - - + var schema = schemaWrapper.schema; + if (schema.$ref != null) { + schema = defsParser.$refs.get(schema.$ref); + } else { + schemaWrapper.definitions = Object.assign({}, defs); + $RefParser.dereference(schemaWrapper).catch(function(err) { + console.log(err); + }); + } + + //console.log(JSON.stringify(schema)); + var view = new JSONSchemaView(schema, 3); + $('#responses-instancePresetPut-500-schema-data').val(stringify(schema)); + var result = $('#responses-instancePresetPut-500-schema-500'); + result.empty(); + result.append(view.render()); + }); + +
    + +
    + + +

    Status: 501 - Function not implemented

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

    instanceSummary

    +

    +
    +
    +
    +

    +

    SDRangel instance summary

    +

    +
    +
    /sdrangel
    +

    +

    Usage and SDK Samples

    +

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

    Parameters

    - +

    Responses

    +

    Status: 200 - Success

    + - +
    + + + + - - - - - - + + + - - + + - - - - - + + - diff --git a/swagger/sdrangel/code/qt5/client/SWGSamplingDevice.cpp b/swagger/sdrangel/code/qt5/client/SWGSamplingDevice.cpp index d17837c92..b04eba307 100644 --- a/swagger/sdrangel/code/qt5/client/SWGSamplingDevice.cpp +++ b/swagger/sdrangel/code/qt5/client/SWGSamplingDevice.cpp @@ -46,6 +46,7 @@ SWGSamplingDevice::init() { serial = new QString(""); center_frequency = 0L; bandwidth = 0; + state = new QString(""); } void @@ -65,6 +66,10 @@ SWGSamplingDevice::cleanup() { } + + if(state != nullptr) { + delete state; + } } SWGSamplingDevice* @@ -87,6 +92,7 @@ SWGSamplingDevice::fromJsonObject(QJsonObject &pJson) { ::Swagger::setValue(&serial, pJson["serial"], "QString", "QString"); ::Swagger::setValue(¢er_frequency, pJson["centerFrequency"], "qint64", ""); ::Swagger::setValue(&bandwidth, pJson["bandwidth"], "qint32", ""); + ::Swagger::setValue(&state, pJson["state"], "QString", "QString"); } QString @@ -121,6 +127,8 @@ SWGSamplingDevice::asJsonObject() { obj->insert("bandwidth", QJsonValue(bandwidth)); + toJsonValue(QString("state"), state, obj, QString("QString")); + return obj; } @@ -205,6 +213,15 @@ SWGSamplingDevice::setBandwidth(qint32 bandwidth) { this->bandwidth = bandwidth; } +QString* +SWGSamplingDevice::getState() { + return state; +} +void +SWGSamplingDevice::setState(QString* state) { + this->state = state; +} + } diff --git a/swagger/sdrangel/code/qt5/client/SWGSamplingDevice.h b/swagger/sdrangel/code/qt5/client/SWGSamplingDevice.h index 878117048..c033316a1 100644 --- a/swagger/sdrangel/code/qt5/client/SWGSamplingDevice.h +++ b/swagger/sdrangel/code/qt5/client/SWGSamplingDevice.h @@ -69,6 +69,9 @@ public: qint32 getBandwidth(); void setBandwidth(qint32 bandwidth); + QString* getState(); + void setState(QString* state); + private: qint32 index; @@ -80,6 +83,7 @@ private: QString* serial; qint64 center_frequency; qint32 bandwidth; + QString* state; }; }