webui: add AP reset recovery action

This commit is contained in:
2026-06-08 09:22:10 -06:00
parent c43f121dc8
commit 0f7697e9dd
3 changed files with 87 additions and 1 deletions
+26
View File
@@ -891,3 +891,29 @@ Rules:
- Password is stored in controller preferences.
- Password is not returned by status or config APIs.
- Future dashboard pairing will use Cargo-led credential migration so the dashboard follows AP credential changes automatically.
#### POST /api/v1/config/ap/reset
Resets the Cargo ESP32 access point to default setup credentials.
Behavior:
- SSID is reset to `OverlandController`.
- A new random WPA2 password is generated.
- The new credentials are saved in Preferences.
- The AP is restarted.
- The password is not returned by the API response.
The regenerated password must be read from the OLED setup display or Serial Monitor.
Example response:
{
"ok": true,
"ssid": "OverlandController",
"password_set": true,
"auth": "wpa2",
"ap_ip": "192.168.4.1",
"message": "AP reset to default SSID with regenerated password."
}