EPD Display
1.0.0
Library and application for EPD smart displays
|
Application for ESP32. More...
Classes | |
class | DisplayContent_t |
Definition of data variables. More... | |
class | DisplayDrawer |
Drawing the choosen display modes. More... | |
class | EpdSetup |
Device and displayed data management with setup data. More... | |
class | EpdWebServer |
Establing and creating network connection / Reading remote host API GET response. More... | |
class | JsonParse |
Parsing Data and Setup from remote host API. More... | |
Macros | |
#define | APIURL "http://192.168.1.18:8000/" |
#define | SETUPURL "http://192.168.1.18:8000/setup/84:CC:A8:48:58:C4" |
#define | PARAM_INPUT_SSID "SsidInput" |
#define | PARAM_INPUT_PASS "PasswordInput" |
#define | WIFI_TIMEOT_MS 5000 |
#define | AP_TIMEOT_MS 60000 |
#define | ssidAP "ESP32-EPaper" |
#define | passwordAP "password" |
#define | MAC WiFi.macAddress().c_str() |
Enumerations | |
enum | SettingType { SETTING_CARD, SETTING_TABLE, SETTING_MEETING } |
Functions | |
void | notFound (AsyncWebServerRequest *request) |
Error - host not found. More... | |
AsyncWebServer | server (80) |
String | readFile (fs::FS &fs, const char *path) |
Reading Flash memory files with network credentials. More... | |
void | writeFile (fs::FS &fs, const char *path, const char *message) |
Writing Flash memory files with network credentials. More... | |
String | processor (const String &var) |
Replaces placeholder with stored values. More... | |
DisplayDrawer::DisplayDrawer (EPD_Display *display) | |
void | DisplayDrawer::SetDesign (uint8_t design) |
Setting up the design. More... | |
void | DisplayDrawer::DrawConnect () |
Design and item layout for the Connecting screen. More... | |
void | DisplayDrawer::DrawAP () |
Design and item layout for the Wireless network initialization screen. More... | |
void | DisplayDrawer::DrawCard (DisplayContent_t *data) |
Design and item layout for the Nameplate (card) mode. More... | |
void | DisplayDrawer::DrawTable (DisplayContent_t *data, int hour, String date, String day) |
Design and item layout for the Timetable mode. More... | |
void | DisplayDrawer::DrawMeeting (DisplayContent_t *data, int hour, String date, String day) |
Design and item layout for the Timetable mode. More... | |
void | DisplayDrawer::Show () |
Shows the content - Sends the image buffer in RAM to e-Paper and displays. More... | |
EpdSetup::EpdSetup (String setup) | |
Construct a new Epd Setup:: Epd Setup object. More... | |
void | EpdWebServer::createSoftAP () |
Create and start Soft Acces Point mode for network setup. More... | |
void | EpdWebServer::connectToWifi (EPD_Display *display) |
Connecting to the choosen Wireless Network (reading credentials in internal memory) More... | |
String | EpdWebServer::getApiResponse (String who, String what, String id) |
API GET Method - reading remote host endpoint with data. More... | |
String | EpdWebServer::getSetup () |
API GET Method - reading remote host endpoint. More... | |
void | JsonParse::getParseData (String payload, DisplayContent_t *data) |
Parsing Data and Setup from remote host API. More... | |
Variables | |
const char index_html[] | PROGMEM |
HTTPClient | http |
String | valuePassword |
String | valueSsid |
String | SsidInput |
String | PasswordInput |
int | setting |
Application for ESP32.
#define AP_TIMEOT_MS 60000 |
#define APIURL "http://192.168.1.18:8000/" |
URL - remote host NoSQL Database (API)
#define MAC WiFi.macAddress().c_str() |
Device MAC adress
#define PARAM_INPUT_PASS "PasswordInput" |
#define PARAM_INPUT_SSID "SsidInput" |
default values for the TextBox inputs
#define passwordAP "password" |
#define SETUPURL "http://192.168.1.18:8000/setup/84:CC:A8:48:58:C4" |
#define ssidAP "ESP32-EPaper" |
Soft Acces Point (Network) credentials
#define WIFI_TIMEOT_MS 5000 |
Wait/Idle time for establishing connection
enum SettingType |
void EpdWebServer::connectToWifi | ( | EPD_Display * | display | ) |
Connecting to the choosen Wireless Network (reading credentials in internal memory)
void EpdWebServer::createSoftAP | ( | ) |
Create and start Soft Acces Point mode for network setup.
DisplayDrawer::DisplayDrawer | ( | EPD_Display * | display | ) |
void DisplayDrawer::DrawAP | ( | ) |
Design and item layout for the Wireless network initialization screen.
void DisplayDrawer::DrawCard | ( | DisplayContent_t * | content | ) |
Design and item layout for the Nameplate (card) mode.
*content | The displayed data (content) |
void DisplayDrawer::DrawConnect | ( | ) |
Design and item layout for the Connecting screen.
void DisplayDrawer::DrawMeeting | ( | DisplayContent_t * | meeting_content, |
int | hour, | ||
String | date, | ||
String | day | ||
) |
Design and item layout for the Timetable mode.
*meeting_content | The displayed data (content) |
hour | The current hour of the day |
date | The current date |
day | The current day of the week |
void DisplayDrawer::DrawTable | ( | DisplayContent_t * | table_content, |
int | hour, | ||
String | date, | ||
String | day | ||
) |
Design and item layout for the Timetable mode.
*table_content | The displayed data (content) |
hour | The current hour of the day |
date | The current date |
day | The current day of the week |
EpdSetup::EpdSetup | ( | String | setup | ) |
Construct a new Epd Setup:: Epd Setup object.
setup | The remote data (API GET) |
String EpdWebServer::getApiResponse | ( | String | who, |
String | what, | ||
String | id | ||
) |
API GET Method - reading remote host endpoint with data.
who | Epd |
what | Display mode /card/table/meet |
id | Identificator of an specific entity (user/room) |
void JsonParse::getParseData | ( | String | payload, |
DisplayContent_t * | data | ||
) |
Parsing Data and Setup from remote host API.
payload | The data from remote host (API GET) |
data | Display Content |
String EpdWebServer::getSetup | ( | ) |
API GET Method - reading remote host endpoint.
void notFound | ( | AsyncWebServerRequest * | request | ) |
Error - host not found.
request |
String processor | ( | const String & | var | ) |
Replaces placeholder with stored values.
String readFile | ( | fs::FS & | fs, |
const char * | path | ||
) |
Reading Flash memory files with network credentials.
AsyncWebServer server | ( | 80 | ) |
void DisplayDrawer::SetDesign | ( | uint8_t | design | ) |
Setting up the design.
design | Display design depending on the display size /2/4/7 inch |
void DisplayDrawer::Show | ( | ) |
Shows the content - Sends the image buffer in RAM to e-Paper and displays.
void writeFile | ( | fs::FS & | fs, |
const char * | path, | ||
const char * | message | ||
) |
Writing Flash memory files with network credentials.
HTTPClient http |
String PasswordInput |
const char index_html [] PROGMEM |
Soft Acces Point web page to handle 2 textboxes (for SSID and Password)
int setting |
String SsidInput |
String valuePassword |
String valueSsid |