move wifi stuff to separate module, implement WifiManager for AP configuration

This commit is contained in:
2019-11-09 22:39:46 +01:00
parent 392a2523c0
commit 4b571786ef
4 changed files with 65 additions and 41 deletions

View File

@@ -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
*/