mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 21:54:55 -04:00
LoRa demod: REST API
This commit is contained in:
@@ -72,6 +72,7 @@ const QMap<QString, QString> WebAPIRequestMapper::m_channelURIToSettingsKey = {
|
||||
{"sdrangel.demod.localsink", "LocalSinkSettings"},
|
||||
{"sdrangel.channel.localsink", "LocalSinkSettings"}, // remap
|
||||
{"sdrangel.channel.localsource", "LocalSourceSettings"},
|
||||
{"sdrangel.channel.lorademod", "LoRaDemodSettings"},
|
||||
{"sdrangel.channel.modlora", "LoRaModSettings"},
|
||||
{"sdrangel.demod.remotesink", "RemoteSinkSettings"},
|
||||
{"sdrangel.channeltx.remotesource", "RemoteSourceSettings"},
|
||||
@@ -2914,6 +2915,11 @@ bool WebAPIRequestMapper::getChannel(
|
||||
channelSettings->setLocalSourceSettings(new SWGSDRangel::SWGLocalSourceSettings());
|
||||
channelSettings->getLocalSourceSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (channelSettingsKey == "LoRaDemodSettings")
|
||||
{
|
||||
channelSettings->setLoRaDemodSettings(new SWGSDRangel::SWGLoRaDemodSettings());
|
||||
channelSettings->getLoRaDemodSettings()->fromJsonObject(settingsJsonObject);
|
||||
}
|
||||
else if (channelSettingsKey == "LoRaModSettings")
|
||||
{
|
||||
channelSettings->setLoRaModSettings(new SWGSDRangel::SWGLoRaModSettings());
|
||||
|
||||
Reference in New Issue
Block a user