webui: add AP reset recovery action
This commit is contained in:
+26
@@ -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."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user