Jack Hansdampf / ESP8266WebserverF103

Dependents:   ATCmdParserTest_V1_0_F103

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 class ESP8266Webserver
00008 {   
00009     private:    
00010     int hs_count=0;
00011     Callback< void()> cbs[10];
00012     char hs[10][20];
00013     char recbuf[1000];
00014     bool beinhaltet(char* suchstring);
00015     int port=80;
00016     bool dbg;
00017     int clientID[10]={0,0,0,0,0,0,0,0,0,0};
00018     int clientIdx=0;
00019     char sendstring[1000];
00020     BufferedSerial *_serial;
00021     char ipadr[100];
00022     ATCmdParser *_parser;
00023 
00024     bool gefunden;
00025     string ipad=ip;
00026     
00027     
00028 
00029     public:
00030     char suchergebnis[20];
00031     int Aufrufe=0;
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, std::string webseite);
00039     const char* gibWert(const char* suchstring);
00040     const char* gibWert(std::string suchstring);
00041     void debugOn(bool pD);
00042     void listAPs();
00043     char* gibIP();
00044     
00045 
00046 };