diff --git a/meshtastic/config.proto b/meshtastic/config.proto index 33eaa58..81d1536 100644 --- a/meshtastic/config.proto +++ b/meshtastic/config.proto @@ -578,6 +578,20 @@ message Config { */ bool ipv6_enabled = 11; + /* + * Only enable WiFi when connected to external power (USB). + * WiFi will be automatically disabled when running on battery + * after wifi_power_loss_timeout_secs delay. + */ + bool wifi_on_external_power_only = 12; + + /* + * Delay in seconds before disabling WiFi after external power is lost. + * This allows for brief power interruptions without toggling WiFi. + * Default: 30 seconds. Set to 0 for immediate disable. + */ + uint32 wifi_power_loss_timeout_secs = 13; + /* * Available flags auxiliary network protocols */