Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Added compiler directif to switch between esp32/8266
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Jan 7, 2018
1 parent 258fe2d commit c4f7332
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion HyperionRGB/WrapperWebconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
#define WrapperWebconfig_h
#include "BaseHeader.h"

#include <ESP8266WebServer.h>
#if defined(ESP8266)
#include <ESP8266WebServer.h>
#elif defined(ESP32)
#include <ESP32WebServer.h>
#endif
#include <LinkedList.h>

class SelectEntryBase {
Expand Down
10 changes: 8 additions & 2 deletions HyperionRGB/WrapperWiFi.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@
#define WrapperWiFi_h

#include "BaseHeader.h"
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>

#if defined(ESP8266)
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#elif defined(ESP32)
#include <WiFi.h>
#include <ESPmDNS.h>
#endif

class WrapperWiFi {
public:
Expand Down

0 comments on commit c4f7332

Please sign in to comment.