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

Meshtastic: implement API properly

This commit is contained in:
f4exb
2026-03-22 21:36:41 +01:00
parent 239ebc38f9
commit 3530dd33ed
30 changed files with 4488 additions and 278 deletions
+12 -1
View File
@@ -4625,6 +4625,18 @@ bool WebAPIRequestMapper::getChannelSettings(
channelSettings->getM17ModSettings()->init();
channelSettings->getM17ModSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "MeshtasticDemodSettings")
{
channelSettings->setMeshtasticDemodSettings(new SWGSDRangel::SWGMeshtasticDemodSettings());
channelSettings->getMeshtasticDemodSettings()->init();
channelSettings->getMeshtasticDemodSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "MeshtasticModSettings")
{
channelSettings->setMeshtasticModSettings(new SWGSDRangel::SWGMeshtasticModSettings());
channelSettings->getMeshtasticModSettings()->init();
channelSettings->getMeshtasticModSettings()->fromJsonObject(settingsJsonObject);
}
else if (channelSettingsKey == "NFMDemodSettings")
{
channelSettings->setNfmDemodSettings(new SWGSDRangel::SWGNFMDemodSettings());
@@ -5719,4 +5731,3 @@ void WebAPIRequestMapper::resetFeatureActions(SWGSDRangel::SWGFeatureActions& fe
featureActions.setStarTrackerActions(nullptr);
featureActions.setVorLocalizerActions(nullptr);
}