-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
69 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
#ifndef ESPESSENTIALS_H | ||
#define ESPESSENTIALS_H | ||
|
||
#include "Wifi.h" | ||
#include "OTA.h" | ||
#include "WebServer.h" | ||
#include "Wifi.h" | ||
|
||
#include <Arduino.h> | ||
|
||
#define ESSENTIALS_BAUD 115200 | ||
|
||
void handleESPEssentials(); | ||
void initESPEssentials(String projectName, int baudRate = ESSENTIALS_BAUD, String otaPassword = ""); | ||
void initESPEssentials(String projectName, String otaPassword); | ||
|
||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ class OTAClass : public ArduinoOTAClass | |
|
||
extern OTAClass OTA; | ||
|
||
#endif | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#include <Arduino.h> | ||
|
||
#ifdef SERIAL_OUT_SILENT | ||
|
||
#define PRINT(s) | ||
#define PRINT_VERBOSE(s) | ||
#define PRINTLN(s) | ||
#define PRINTLN_VERBOSE(s) | ||
#define PRINTF(s, ...) | ||
#define PRINTF_VERBOSE(s, ...) | ||
|
||
#else | ||
|
||
#define PRINT(s) Serial.print(s) | ||
#define PRINTLN(s) Serial.println(s) | ||
#define PRINTF(s, ...) Serial.printf(s, ##__VA_ARGS__) | ||
|
||
#ifdef SERIAL_OUT_VERBOSE | ||
#define PRINT_VERBOSE(s) Serial.print(s) | ||
#define PRINTLN_VERBOSE(s) Serial.println(s) | ||
#define PRINTF_VERBOSE(s, ...) Serial.printf(s, ##__VA_ARGS__) | ||
#else | ||
#define PRINT_VERBOSE(s) | ||
#define PRINTLN_VERBOSE(s) | ||
#define PRINTF_VERBOSE(s, ...) | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ WifiClass::WifiClass() | |
setConfigPortalBlocking(false); | ||
} | ||
|
||
WifiClass Wifi; | ||
WifiClass Wifi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ class WifiClass : public WiFiManager | |
|
||
extern WifiClass Wifi; | ||
|
||
#endif | ||
#endif |