feat(firmware): implement smart configuration for WiFi setup and connection

This commit is contained in:
2025-11-24 21:02:04 +08:00
parent cc6641b526
commit d583370c6d
3 changed files with 228 additions and 50 deletions

View File

@@ -0,0 +1,16 @@
#if !defined(SMARTCONFIG_H)
#define SMARTCONFIG_H
#include <WebServer.h>
#include <DNSServer.h>
extern bool should_reboot;
extern WebServer server;
extern DNSServer dnsServer;
extern bool smartconfig_done;
void startSmartConfig(char *ssid, char *psk);
bool connectToSavedWiFi();
#endif // SMARTCONFIG_H