Files
ESP-Scope/main/wifi_manager.h
Matt 46514b5c76 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.
2025-12-14 11:23:18 +00:00

17 lines
426 B
C

#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