Started to define class methods

This commit is contained in:
Th3maz1ng 2019-12-25 21:07:53 +01:00
parent 1eaa1c1361
commit 635273589f
2 changed files with 36 additions and 2 deletions

View File

@ -1 +1,11 @@
#include "HtmlClient.h"
HtmlClient::HtmlClient() : WiFiClient()
{
}
HtmlClient::~HtmlClient()
{
}

View File

@ -1,11 +1,35 @@
#ifndef HTMLCLIENT_H
#define HTMLCLIENT_H
class HtmlClient
#include <ESP8266WiFi.h>
class HtmlClient : WiFiClient
{
public:
HtmlClient();
virtual ~HtmlClient();
boolean sendHtmlQuery();
uint16_t readHtmlResponse(uint8_t *buffer);
protected:
private:
};
#endif //HTMLCLIENT_H
#endif //HTMLCLIENT_H
/*
* TCP status codes :
* enum tcp_state {
CLOSED = 0,
LISTEN = 1,
SYN_SENT = 2,
SYN_RCVD = 3,
ESTABLISHED = 4,
FIN_WAIT_1 = 5,
FIN_WAIT_2 = 6,
CLOSE_WAIT = 7,
CLOSING = 8,
LAST_ACK = 9,
TIME_WAIT = 10
};
*/