1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 22:14:45 -04:00

LimeRFE USB support: REST API: implemented power API

This commit is contained in:
f4exb
2020-01-14 15:44:28 +01:00
parent aea86f6ef7
commit 699c84c621
19 changed files with 518 additions and 26 deletions
+18
View File
@@ -44,6 +44,7 @@ namespace SWGSDRangel
class SWGAMBEDevices;
class SWGLimeRFEDevices;
class SWGLimeRFESettings;
class SWGLimeRFEPower;
class SWGPresets;
class SWGPresetTransfer;
class SWGPresetIdentifier;
@@ -487,6 +488,22 @@ public:
return 501;
}
/**
* Handler of /sdrangel/limerfe/power (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
* returns the Http status code (default 501: not implemented)
*/
virtual int instanceLimeRFEPowerGet(
const QString& serial,
SWGSDRangel::SWGLimeRFEPower& response,
SWGSDRangel::SWGErrorResponse& error)
{
(void) serial;
(void) response;
error.init();
*error.getMessage() = QString("Function not implemented");
return 501;
}
/**
* Handler of /sdrangel/presets (GET) swagger/sdrangel/code/html2/index.html#api-Default-instanceChannels
* returns the Http status code (default 501: not implemented)
@@ -971,6 +988,7 @@ public:
static QString instanceLimeRFESerialURL;
static QString instanceLimeRFEConfigURL;
static QString instanceLimeRFERunURL;
static QString instanceLimeRFEPowerURL;
static QString instancePresetsURL;
static QString instancePresetURL;
static QString instancePresetFileURL;