Fix Companion device power saving
This commit is contained in:
1 parent
b8d274c90e
commit
843d309e2b
16 files changed
+1959
-1821
No files matched your search
@@ -19,7 +19,8 @@
|
||||
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", "radio.rxps", "repeat",
|
||||
"cad", "radio.rxgain", "radio.fem.rxgain", "radio.rxps", "powersaving",
|
||||
"repeat",
|
||||
"advert.interval", "flood.advert.interval",
|
||||
"flood.max", "flood.max.advert", "flood.max.unscoped", "loop.detect",
|
||||
// MQTTPrefs (WiFi / MQTT / misc observer)
|
||||
|
||||
+1782
-1778
File diff suppressed because it is too large.
Load diff
@@ -1438,6 +1438,7 @@ void WebConfigServer::handleConfigGet(AsyncWebServerRequest* req) {
|
||||
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["powersaving"] = (bool)node.power_saving;
|
||||
radio["repeat"] = (bool)node.repeat;
|
||||
radio["flood_max"] = node.flood_max;
|
||||
radio["flood_max_advert"] = node.flood_max_advert;
|
||||
|
||||
@@ -59,6 +59,7 @@ public:
|
||||
CAP_WIFI_POWER_SAVE = 1UL << 10,
|
||||
CAP_FEM_RX_GAIN = 1UL << 11,
|
||||
CAP_RX_POWER_SAVING = 1UL << 12,
|
||||
CAP_POWER_SAVING = 1UL << 13,
|
||||
CAP_DELAYS = CAP_RX_DELAY | CAP_TX_DELAY,
|
||||
};
|
||||
|
||||
@@ -86,6 +87,7 @@ public:
|
||||
uint8_t rx_ps_preamble;
|
||||
uint32_t rx_ps_rx_us;
|
||||
uint32_t rx_ps_sleep_us;
|
||||
uint8_t power_saving;
|
||||
uint8_t repeat;
|
||||
uint16_t advert_interval;
|
||||
uint8_t flood_advert_interval;
|
||||
|
||||
Reference in new issue
Block a user