feat(firmware): implement smart configuration for WiFi setup and connection
This commit is contained in:
16
hardware/firmware/src/smartconfig.h
Normal file
16
hardware/firmware/src/smartconfig.h
Normal 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
|
||||
Reference in New Issue
Block a user