#pragma once #include // NVS + Wi-Fi station using whatever credentials are stored in NVS. void net_init(void); bool net_has_credentials(void); bool net_wait_connected(int timeout_ms); bool net_is_connected(void); // Opens the setup hotspot (APSTA) with a captive portal; station keeps retrying meanwhile. void net_start_portal(void); const char *net_ip_str(void);