Skip to content

Commit 4383195

Browse files
committed
Remove ESP-specific header includes
1 parent 3662e38 commit 4383195

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

ESP32WebThingAdapter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#ifdef ESP32
1616

17+
#include <ESP8266WiFi.h> // TODO: maybe unnecessary?
18+
#include <WiFiClient.h>
1719
#include <ArduinoJson.h>
1820
#include <ESPAsyncWebServer.h>
1921
#include <ESPmDNS.h>

ESP8266WebThingAdapter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
#ifdef ESP8266
1616

17+
#include <ESP8266WiFi.h>
18+
#include <WiFiClient.h>
1719
#include <ArduinoJson.h>
1820
#include <ESP8266WebServer.h>
1921
#include <ESP8266mDNS.h>

examples/LED/LED.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
88
*/
99

10-
#include <ESP8266WiFi.h>
11-
#include <WiFiClient.h>
1210
#include "Thing.h"
1311
#include "WebThingAdapter.h"
1412

examples/LEDLamp/LEDLamp.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
88
*/
99

10-
#include <ESP8266WiFi.h>
11-
#include <WiFiClient.h>
1210
#include <Thing.h>
1311
#include <WebThingAdapter.h>
1412

examples/RGBLamp/RGBLamp.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
99
*/
1010

11-
#include <ESP8266WiFi.h>
12-
#include <WiFiClient.h>
1311
#include <Thing.h>
1412
#include <WebThingAdapter.h>
1513

examples/TextDisplay/TextDisplay.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ BSD license, check license.txt for more information
1919
All text above, and the splash screen must be included in any redistribution
2020
*********************************************************************/
2121

22-
#include <ESP8266WiFi.h>
23-
#include <WiFiClient.h>
2422
#include <Thing.h>
2523
#include <WebThingAdapter.h>
2624

0 commit comments

Comments
 (0)