feat: Recovery-Download beim Booten

This commit is contained in:
Michael Sauer
2026-09-12 02:24:58 +02:00
parent 7474cd77e1
commit 8fa4af7eb5
6 changed files with 172 additions and 2 deletions
+6
View File
@@ -21,6 +21,12 @@ extern volatile uint32_t nl_net_beat;
/* Starts the network task. An empty ssid starts the onboarding AP. Strings are copied. */
void nl_wifi_start(const char *ssid, const char *pass, const char *ap_pass);
/* Joins a station directly (no nl_wifi_sm) and blocks until it gets an IP or timeout_ms
* elapses; returns true on success. For use before nl_wifi_start() only - e.g. the boot
* recovery path in nl_recovery.c - since it drives the SDK Wi-Fi calls itself instead of
* going through the state machine, and must not race nl_wifi_start()'s own netif status
* event registration and s_lock/s_queue setup. Feeds the watchdog itself while it waits. */
bool nl_wifi_join_blocking(const char *ssid, const char *pass, uint32_t timeout_ms);
/* Starts an onboarding test with new credentials (from the HTTP task). 0 = queued. */
int nl_wifi_request_onboard(const char *ssid, const char *pass);
/* True while the unconfigured onboarding AP is open (API without token). */