Add soft-ap mode, remove wifi config.

Device defaukts to soft-ap mode. User can use the "WIFI" button to set wifi credentials. Pressing "boot" for 1 second resets to soft-ap mode.

Re-work UI to fill screen.
This commit is contained in:
Matt
2025-12-14 11:23:18 +00:00
parent 855d287e1d
commit 46514b5c76
7 changed files with 702 additions and 195 deletions

16
main/wifi_manager.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef WIFI_MANAGER_H
#define WIFI_MANAGER_H
#include "esp_err.h"
#include "esp_http_server.h"
// Initialize Wi-Fi (Checks NVS, starts AP or STA)
bool wifi_manager_init_wifi(void);
// Register provisioning URI handlers to the server
void wifi_manager_register_uri(httpd_handle_t server);
// Helper to erase NVS credentials (can be called by button handler)
void wifi_manager_erase_config(void);
#endif // WIFI_MANAGER_H