-
Notifications
You must be signed in to change notification settings - Fork 0
/
SoftAP.h
43 lines (34 loc) · 925 Bytes
/
SoftAP.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef SOFTAP_H
#define SOFTAP_H
#include "Parameters.h"
#include "ClockDisplay.h"
#include "digits.h"
#include <ArduinoJson.h>
#include <DNSServer.h>
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
const byte DNS_PORT = 53;
class SoftAP {
public:
SoftAP(const char *ssid,
const char *passphrase,
Parameters *params,
ClockDisplay *display) : _ssid(ssid),
_passphrase(passphrase),
_params(params),
_display(display)
{
}
void init();
void run();
private:
void startAp();
ClockDisplay * _display;
Parameters * _params;
DNSServer * _dnsServer;
uint8_t _minimumQuality = 8;
const char * _ssid;
const char * _passphrase;
};
#endif //SOFTAP_H