#ifndef WIFI_MGR_H #define WIFI_MGR_H #include #include "config.h" /** * AP mode: SoftAP only. * STA mode: join LAN; if that fails, SoftAP comes up for recovery. */ bool wifi_mgr_start(const config_t *cfg); /** Call from main loop — runs deferred STA join (STA mode only). */ void wifi_mgr_poll(void); wifi_mode_t wifi_mgr_active_mode(void); /** Primary IP for UI (STA if up, else AP). */ const char *wifi_mgr_ip_str(void); const char *wifi_mgr_sta_ip_str(void); const char *wifi_mgr_ap_ip_str(void); const char *wifi_mgr_mdns_name(void); bool wifi_mgr_sta_up(void); bool wifi_mgr_ap_up(void); bool wifi_mgr_is_up(void); const char *wifi_mgr_debug(void); #endif