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.
17 lines
426 B
C
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
|