Library für ESP01 Webserver STM32F103RB Nucleo
Dependents: Nucleo_dht11_Webserver WebServerGSOEWorkshopSlider WebServerGSOEWorkshopDynamisch WebServerGSOEWorkshopStatisch ... more
ESP8266Webserver.h
- Committer:
- jack1930
- Date:
- 2021-06-18
- Revision:
- 15:e710f0431920
- Parent:
- 14:d17cfd8131b1
- Child:
- 16:b09391fb73b4
File content as of revision 15:e710f0431920:
#include "mbed.h" #include "string" #include "Einstellungen.h" class ESP8266Webserver { private: int hs_count=0; Callback< void()> cbs[10]; char hs[10][20]; char recbuf[1000]; bool beinhaltet(char* suchstring); int port=80; bool dbg; int clientID[10]={0,0,0,0,0,0,0,0,0,0}; int clientIdx=0; char sendstring[1000]; BufferedSerial *_serial; char ipadr[100]; ATCmdParser *_parser; int Aufrufe=0; bool gefunden; string ipad=ip; public: char suchergebnis[20]; ESP8266Webserver(); int on(const char* handlestring,Callback< void()> func); int begin(void); int handleClient(void); int send(int HTTPStatus,const char* Mimetype, const char* webseite); int send(int HTTPStatus,const char* Mimetype, string webseite); const char* gibWert(const char* suchstring); string gibWertString(string suchstring); void debugOn(bool pD); void listAPs(); char* gibIP(); };