forked from FKainka/NanoESP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NanoESP_HTTP.h
38 lines (25 loc) · 827 Bytes
/
NanoESP_HTTP.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
*/
#include "Arduino.h"
#include <NanoESP.h>
#include "NanoESP_Flash.h"
#ifndef NanoESP_HTTP_H
#define NanoESP_HTTP_H
class NanoESP_HTTP {
public:
NanoESP_HTTP(NanoESP& nanoesp);
//NanoESP* getNanoESP() {return m_nanoesp;}
bool sendFromFlash(int client, const char *website, int len);
bool recvRequest(int &id, String &method, String &ressource, String ¶meter); //Müsste recvHTTP heißen //OBSOLET?!?
bool sendStreamHeader(int connectionId);
bool sendRequest(int id, char method[5], String address, String parameter);
bool sendRequest(int id, char method[5], String address);
//New
bool recvHTTP(int id, int len, String &method, String &ressource, String ¶meter);
private:
NanoESP* m_nanoesp;
String at = "AT+";
String cip = "CIP";
String cw = "CW";
};
#endif