- Generated 2019-05-10T00:00:57.798+02:00
+ Generated 2019-05-10T14:58:45.508+02:00
diff --git a/sdrbase/resources/webapi/doc/swagger/include/LocalOutput.yaml b/sdrbase/resources/webapi/doc/swagger/include/LocalOutput.yaml
new file mode 100644
index 000000000..d5369e12a
--- /dev/null
+++ b/sdrbase/resources/webapi/doc/swagger/include/LocalOutput.yaml
@@ -0,0 +1,21 @@
+LocalOutputSettings:
+ description: LocalOutput
+ properties:
+ useReverseAPI:
+ description: Synchronize with reverse API (1 for yes, 0 for no)
+ type: integer
+ reverseAPIAddress:
+ type: string
+ reverseAPIPort:
+ type: integer
+ reverseAPIDeviceIndex:
+ type: integer
+
+LocalOutputReport:
+ description: LocalOutput
+ properties:
+ centerFrequency:
+ type: integer
+ format: uint64
+ sampleRate:
+ type: integer
diff --git a/sdrbase/resources/webapi/doc/swagger/swagger.yaml b/sdrbase/resources/webapi/doc/swagger/swagger.yaml
index ce3e8bcb7..b311cd066 100644
--- a/sdrbase/resources/webapi/doc/swagger/swagger.yaml
+++ b/sdrbase/resources/webapi/doc/swagger/swagger.yaml
@@ -1808,6 +1808,8 @@ definitions:
$ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrOutputSettings"
localInputSettings:
$ref: "/doc/swagger/include/LocalInput.yaml#/LocalInputSettings"
+ localOutputSettings:
+ $ref: "/doc/swagger/include/LocalOutput.yaml#/LocalOutputSettings"
perseusSettings:
$ref: "/doc/swagger/include/Perseus.yaml#/PerseusSettings"
plutoSdrInputSettings:
@@ -1863,6 +1865,8 @@ definitions:
$ref: "/doc/swagger/include/LimeSdr.yaml#/LimeSdrOutputReport"
localInputReport:
$ref: "/doc/swagger/include/LocalInput.yaml#/LocalInputReport"
+ localOutputReport:
+ $ref: "/doc/swagger/include/LocalOutput.yaml#/LocalOutputReport"
perseusReport:
$ref: "/doc/swagger/include/Perseus.yaml#/PerseusReport"
plutoSdrInputReport:
diff --git a/sdrbase/webapi/webapirequestmapper.cpp b/sdrbase/webapi/webapirequestmapper.cpp
index d0b36cd19..3a8c52117 100644
--- a/sdrbase/webapi/webapirequestmapper.cpp
+++ b/sdrbase/webapi/webapirequestmapper.cpp
@@ -2166,6 +2166,21 @@ bool WebAPIRequestMapper::validateDeviceSettings(
return false;
}
}
+ else if ((*deviceHwType == "LocalOutput") && (deviceSettings.getDirection() == 1))
+ {
+ if (jsonObject.contains("localOutputSettings") && jsonObject["localOutputSettings"].isObject())
+ {
+ QJsonObject localOutputSettingsJsonObject = jsonObject["localOutputSettings"].toObject();
+ deviceSettingsKeys = localOutputSettingsJsonObject.keys();
+ deviceSettings.setLocalOutputSettings(new SWGSDRangel::SWGLocalOutputSettings());
+ deviceSettings.getLocalOutputSettings()->fromJsonObject(localOutputSettingsJsonObject);
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
else
{
return false;
diff --git a/swagger/sdrangel/api/swagger/include/LocalOutput.yaml b/swagger/sdrangel/api/swagger/include/LocalOutput.yaml
new file mode 100644
index 000000000..d5369e12a
--- /dev/null
+++ b/swagger/sdrangel/api/swagger/include/LocalOutput.yaml
@@ -0,0 +1,21 @@
+LocalOutputSettings:
+ description: LocalOutput
+ properties:
+ useReverseAPI:
+ description: Synchronize with reverse API (1 for yes, 0 for no)
+ type: integer
+ reverseAPIAddress:
+ type: string
+ reverseAPIPort:
+ type: integer
+ reverseAPIDeviceIndex:
+ type: integer
+
+LocalOutputReport:
+ description: LocalOutput
+ properties:
+ centerFrequency:
+ type: integer
+ format: uint64
+ sampleRate:
+ type: integer
diff --git a/swagger/sdrangel/api/swagger/swagger.yaml b/swagger/sdrangel/api/swagger/swagger.yaml
index c6242f615..0a1a4ce71 100644
--- a/swagger/sdrangel/api/swagger/swagger.yaml
+++ b/swagger/sdrangel/api/swagger/swagger.yaml
@@ -1808,6 +1808,8 @@ definitions:
$ref: "http://localhost:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrOutputSettings"
localInputSettings:
$ref: "http://localhost:8081/api/swagger/include/LocalInput.yaml#/LocalInputSettings"
+ localOutputSettings:
+ $ref: "http://localhost:8081/api/swagger/include/LocalOutput.yaml#/LocalOutputSettings"
perseusSettings:
$ref: "http://localhost:8081/api/swagger/include/Perseus.yaml#/PerseusSettings"
plutoSdrInputSettings:
@@ -1863,6 +1865,8 @@ definitions:
$ref: "http://localhost:8081/api/swagger/include/LimeSdr.yaml#/LimeSdrOutputReport"
localInputReport:
$ref: "http://localhost:8081/api/swagger/include/LocalInput.yaml#/LocalInputReport"
+ localOutputReport:
+ $ref: "http://localhost:8081/api/swagger/include/LocalOutput.yaml#/LocalOutputReport"
perseusReport:
$ref: "http://localhost:8081/api/swagger/include/Perseus.yaml#/PerseusReport"
plutoSdrInputReport:
diff --git a/swagger/sdrangel/code/html2/index.html b/swagger/sdrangel/code/html2/index.html
index dd71c0604..35ecdf5f6 100644
--- a/swagger/sdrangel/code/html2/index.html
+++ b/swagger/sdrangel/code/html2/index.html
@@ -2165,6 +2165,9 @@ margin-bottom: 20px;
"localInputReport" : {
"$ref" : "#/definitions/LocalInputReport"
},
+ "localOutputReport" : {
+ "$ref" : "#/definitions/LocalOutputReport"
+ },
"perseusReport" : {
"$ref" : "#/definitions/PerseusReport"
},
@@ -2299,6 +2302,9 @@ margin-bottom: 20px;
"localInputSettings" : {
"$ref" : "#/definitions/LocalInputSettings"
},
+ "localOutputSettings" : {
+ "$ref" : "#/definitions/LocalOutputSettings"
+ },
"perseusSettings" : {
"$ref" : "#/definitions/PerseusSettings"
},
@@ -3364,6 +3370,36 @@ margin-bottom: 20px;
}
},
"description" : "LocalInput"
+};
+ defs.LocalOutputReport = {
+ "properties" : {
+ "centerFrequency" : {
+ "type" : "integer",
+ "format" : "uint64"
+ },
+ "sampleRate" : {
+ "type" : "integer"
+ }
+ },
+ "description" : "LocalOutput"
+};
+ defs.LocalOutputSettings = {
+ "properties" : {
+ "useReverseAPI" : {
+ "type" : "integer",
+ "description" : "Synchronize with reverse API (1 for yes, 0 for no)"
+ },
+ "reverseAPIAddress" : {
+ "type" : "string"
+ },
+ "reverseAPIPort" : {
+ "type" : "integer"
+ },
+ "reverseAPIDeviceIndex" : {
+ "type" : "integer"
+ }
+ },
+ "description" : "LocalOutput"
};
defs.LocalSinkSettings = {
"properties" : {
@@ -24964,7 +25000,7 @@ except ApiException as e: