Jack Hansdampf / ESP8266Webserver
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ESP8266Webserver.h Source File

ESP8266Webserver.h

00001 
00002 #include "mbed.h"
00003 #include "string"
00004 #include "Einstellungen.h"
00005 
00006 
00007 
00008 class ESP8266Webserver
00009 {   
00010     private:    
00011     int hs_count=0;
00012     Callback< void()> cbs[10];
00013     char hs[10][20];
00014     char recbuf[1000];
00015     bool beinhaltet(char* suchstring);
00016     int port=80;
00017     bool dbg;
00018     int clientID[10]={0,0,0,0,0,0,0,0,0,0};
00019     int clientIdx=0;
00020     char sendstring[1000];
00021     BufferedSerial *_serial;
00022     char ipadr[100];
00023     ATCmdParser *_parser;
00024     int Aufrufe=0;
00025     bool gefunden;
00026     string ipad=ip;
00027     
00028     
00029 
00030     public:
00031     char suchergebnis[20];
00032     
00033     ESP8266Webserver();
00034     int on(const char* handlestring,Callback< void()> func);
00035     int begin(void);
00036     int handleClient(void);
00037     int send(int HTTPStatus,const char* Mimetype, const char* webseite);
00038     int send(int HTTPStatus,const char* Mimetype, string webseite);
00039     const char* gibWert(const char* suchstring);
00040     string gibWertString(string suchstring);
00041     void debugOn(bool pD);
00042     void listAPs();
00043     char* gibIP();
00044     
00045 
00046 };