move wifi stuff to separate module, implement WifiManager for AP configuration
This commit is contained in:
@@ -2,21 +2,18 @@
|
||||
* Libraries and global scope code
|
||||
*/
|
||||
|
||||
#include <ESP8266WiFi.h>
|
||||
#include <WiFiClientSecure.h>
|
||||
#include <time.h>
|
||||
|
||||
BearSSL::WiFiClientSecure net;
|
||||
time_t now;
|
||||
unsigned long lastMillis = 0;
|
||||
|
||||
String devname; // Device identifier for MQTT
|
||||
char nodename[80] = "UNDEF";
|
||||
|
||||
struct Settings {
|
||||
String name = "";
|
||||
String ip = "";
|
||||
} settings;
|
||||
|
||||
time_t now;
|
||||
|
||||
/*
|
||||
* Debugging might be nice sometimes
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user