Skip to content

feat(network): add WiFi power management config options#851

Open
lexfrei wants to merge 1 commit intomeshtastic:masterfrom
lexfrei:feat/wifi-power-management
Open

feat(network): add WiFi power management config options#851
lexfrei wants to merge 1 commit intomeshtastic:masterfrom
lexfrei:feat/wifi-power-management

Conversation

@lexfrei
Copy link

@lexfrei lexfrei commented Jan 25, 2026

Summary

Add two new fields to NetworkConfig for automatic WiFi management based on power source:

  • wifi_on_external_power_only (bool, field 12) - when enabled, WiFi is automatically disabled when running on battery
  • wifi_power_loss_timeout_secs (uint32, field 13) - delay in seconds before disabling WiFi after external power is lost (default: 30s)

Use Case

Docked mode (at home, charging):

  • Node connected to USB power
  • WiFi enabled for web UI access, MQTT, remote management

Portable mode (on the go):

  • Node running on battery
  • WiFi not needed — phone connects via BLE
  • WiFi wastes ~100-150mA for no benefit

This feature eliminates the need to manually toggle WiFi settings when switching between these modes.

Related

Add two new fields to NetworkConfig:
- wifi_on_external_power_only: automatically disable WiFi when running on battery
- wifi_power_loss_timeout_secs: delay before disabling WiFi after power loss

This enables automatic WiFi management based on power source, improving
battery life for portable use while maintaining full connectivity when docked.

Relates to: meshtastic/firmware#9427

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
@lexfrei lexfrei marked this pull request as ready for review January 25, 2026 02:23
lexfrei added a commit to lexfrei/meshtastic-firmware that referenced this pull request Jan 25, 2026
Points to feat/wifi-power-management branch with new NetworkConfig fields.
Will be updated to upstream master after protobufs PR is merged.

See: meshtastic/protobufs#851

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Aleksei Sviridkin <f@lex.la>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant