Initial workingHelloWorld Web Server

This commit is contained in:
Siwat Sirichai 2024-01-01 13:28:15 +07:00
parent f8661dd4a1
commit 8c43d260d0
5 changed files with 66 additions and 3 deletions

View file

@ -45,6 +45,7 @@ class ESPMegaPRO {
bool updateTimeFromNTP();
void enableIotModule();
void enableInternalDisplay(HardwareSerial *serial);
void enableWebServer(uint16_t port);
rtctime_t getTime();
void dumpFRAMtoSerial(uint16_t start, uint16_t end);
void dumpFRAMtoSerialASCII(uint16_t start, uint16_t end);
@ -75,9 +76,16 @@ class ESPMegaPRO {
* @note You must call enableIotModule() before using this component.
*/
ESPMegaIoT *iot;
/**
* @brief This component is used to create a web server on the ESPMegaPRO board.
* @typedef ESPMegaWebServer
* @note You must call enableWebServer() before using this component.
*/
ESPMegaWebServer *webServer;
private:
bool iotEnabled = false;
bool internalDisplayEnabled = false;
bool webServerEnabled = false;
ExpansionCard* cards[255];
bool cardInstalled[255];
uint8_t cardCount = 0;