Boot as AP, Configuration, TempSensor etc

This commit is contained in:
Roar Fredriksen
2018-03-20 01:21:49 +01:00
parent f8fe34a454
commit c991403e25
6 changed files with 534 additions and 79 deletions

View File

@@ -18,26 +18,28 @@ class accesspoint {
public:
void setup(int accessPointButtonPin, Stream& debugger);
bool loop();
bool hasConfig();
configuration config;
bool isActivated = false;
private:
const char* AP_SSID = "AMS2MQTT";
configuration config;
bool isActivated = false;
Stream* debugger = NULL;
// DNS server
const byte DNS_PORT = 53;
DNSServer dnsServer;
size_t print(const char* text);
size_t println(const char* text);
size_t print(const Printable& data);
size_t println(const Printable& data);
static size_t print(const char* text);
static size_t println(const char* text);
static size_t print(const Printable& data);
static size_t println(const Printable& data);
// Web server
static void handleRoot();
static void handleSave();
static ESP8266WebServer server;
static Stream* debugger;
};
#endif