Expose RX power saving in WebConfig
This commit is contained in:
1 parent
772607eba1
commit
9161dfd7d5
16 files changed
+2113
-1751
No files matched your search
@@ -19,7 +19,7 @@
|
||||
static const char* const WC_ALLOWED_SET_KEYS[] = {
|
||||
// NodePrefs (radio / node)
|
||||
"name", "lat", "lon", "radio", "tx", "af", "rxdelay", "txdelay",
|
||||
"cad", "radio.rxgain", "radio.fem.rxgain", "repeat",
|
||||
"cad", "radio.rxgain", "radio.fem.rxgain", "radio.rxps", "repeat",
|
||||
"advert.interval", "flood.advert.interval",
|
||||
"flood.max", "flood.max.advert", "flood.max.unscoped", "loop.detect",
|
||||
// MQTTPrefs (WiFi / MQTT / misc observer)
|
||||
|
||||
+1776
-1717
File diff suppressed because it is too large.
Load diff
@@ -1433,6 +1433,11 @@ void WebConfigServer::handleConfigGet(AsyncWebServerRequest* req) {
|
||||
radio["cad"] = (bool)node.cad;
|
||||
radio["rxgain"] = (bool)node.rx_gain;
|
||||
radio["fem_rxgain"] = (bool)node.fem_rx_gain;
|
||||
radio["rxps_enabled"] = (bool)node.rx_ps_enabled;
|
||||
radio["rxps_level"] = node.rx_ps_level;
|
||||
radio["rxps_preamble"] = node.rx_ps_preamble;
|
||||
radio["rxps_rx_us"] = node.rx_ps_rx_us;
|
||||
radio["rxps_sleep_us"] = node.rx_ps_sleep_us;
|
||||
radio["repeat"] = (bool)node.repeat;
|
||||
radio["flood_max"] = node.flood_max;
|
||||
radio["flood_max_advert"] = node.flood_max_advert;
|
||||
|
||||
@@ -58,6 +58,7 @@ public:
|
||||
CAP_TX_DELAY = 1UL << 9,
|
||||
CAP_WIFI_POWER_SAVE = 1UL << 10,
|
||||
CAP_FEM_RX_GAIN = 1UL << 11,
|
||||
CAP_RX_POWER_SAVING = 1UL << 12,
|
||||
CAP_DELAYS = CAP_RX_DELAY | CAP_TX_DELAY,
|
||||
};
|
||||
|
||||
@@ -80,6 +81,11 @@ public:
|
||||
uint8_t cad;
|
||||
uint8_t rx_gain;
|
||||
uint8_t fem_rx_gain;
|
||||
uint8_t rx_ps_enabled;
|
||||
uint8_t rx_ps_level;
|
||||
uint8_t rx_ps_preamble;
|
||||
uint32_t rx_ps_rx_us;
|
||||
uint32_t rx_ps_sleep_us;
|
||||
uint8_t repeat;
|
||||
uint16_t advert_interval;
|
||||
uint8_t flood_advert_interval;
|
||||
|
||||
@@ -13,7 +13,8 @@
|
||||
#define RX_POWERSAVING_BALANCED_LEVEL 5
|
||||
#define RX_POWERSAVING_PROFILE_PREAMBLE 16
|
||||
|
||||
// Fixed settings for companions. Build flags can still override these defaults.
|
||||
// Initial settings for companions. Build flags can override the defaults;
|
||||
// roles with runtime RXPS controls persist the operator's selection afterward.
|
||||
#ifndef RXPS_FIXED_ENABLED
|
||||
#define RXPS_FIXED_ENABLED 1
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user