Minor simplification of includes

This commit is contained in:
Rick Watson 2018-11-11 16:36:41 +00:00
parent 167cfa283b
commit 1521b135e1
7 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,9 @@
#ifndef APSettingsConfig_h #ifndef APSettingsConfig_h
#define APSettingsConfig_h #define APSettingsConfig_h
#include <SettingsService.h>
#include <DNSServer.h> #include <DNSServer.h>
#include <IPAddress.h> #include <IPAddress.h>
#include <SettingsService.h>
#define MANAGE_NETWORK_DELAY 10000 #define MANAGE_NETWORK_DELAY 10000

View File

@ -1,8 +1,8 @@
#ifndef _AsyncJsonCallbackResponse_H_ #ifndef _AsyncJsonCallbackResponse_H_
#define _AsyncJsonCallbackResponse_H_ #define _AsyncJsonCallbackResponse_H_
#include <AsyncJson.h>
#include <ESPAsyncWebServer.h> #include <ESPAsyncWebServer.h>
#include <AsyncJson.h>
/* /*
* Listens for a response being destroyed and calls a callback during said distruction. * Listens for a response being destroyed and calls a callback during said distruction.

View File

@ -1,5 +1,6 @@
#ifndef Async_Json_Request_Web_Handler_H_ #ifndef Async_Json_Request_Web_Handler_H_
#define Async_Json_Request_Web_Handler_H_ #define Async_Json_Request_Web_Handler_H_
#include <ArduinoJson.h> #include <ArduinoJson.h>
#define ASYNC_JSON_REQUEST_DEFAULT_MAX_SIZE 1024 #define ASYNC_JSON_REQUEST_DEFAULT_MAX_SIZE 1024

View File

@ -2,7 +2,6 @@
#define NTPSettingsService_h #define NTPSettingsService_h
#include <SettingsService.h> #include <SettingsService.h>
#include <ESP8266WiFi.h>
#include <TimeLib.h> #include <TimeLib.h>
#include <NtpClientLib.h> #include <NtpClientLib.h>

View File

@ -2,7 +2,6 @@
#define OTASettingsService_h #define OTASettingsService_h
#include <SettingsService.h> #include <SettingsService.h>
#include <ESP8266WiFi.h> // ??
#include <ESP8266mDNS.h> #include <ESP8266mDNS.h>
#include <WiFiUdp.h> #include <WiFiUdp.h>
#include <ArduinoOTA.h> #include <ArduinoOTA.h>

View File

@ -1,8 +1,8 @@
#ifndef WiFiSettingsService_h #ifndef WiFiSettingsService_h
#define WiFiSettingsService_h #define WiFiSettingsService_h
#include <IPAddress.h>
#include <SettingsService.h> #include <SettingsService.h>
#include <IPAddress.h>
#define WIFI_SETTINGS_FILE "/config/wifiSettings.json" #define WIFI_SETTINGS_FILE "/config/wifiSettings.json"
#define WIFI_SETTINGS_SERVICE_PATH "/rest/wifiSettings" #define WIFI_SETTINGS_SERVICE_PATH "/rest/wifiSettings"

View File

@ -1,7 +1,9 @@
#include <Arduino.h> #include <Arduino.h>
#include <ESPAsyncTCP.h> #include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h> #include <ESPAsyncWebServer.h>
#include <FS.h> #include <FS.h>
#include <WiFiSettingsService.h> #include <WiFiSettingsService.h>
#include <WiFiStatus.h> #include <WiFiStatus.h>
#include <WiFiScanner.h> #include <WiFiScanner.h>