From 635273589f18ae47e4c6d7fc571da93a9dbebb2c Mon Sep 17 00:00:00 2001 From: Th3maz1ng Date: Wed, 25 Dec 2019 21:07:53 +0100 Subject: [PATCH] Started to define class methods --- src/app/HtmlClient.cpp | 10 ++++++++++ src/app/HtmlClient.h | 28 ++++++++++++++++++++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/app/HtmlClient.cpp b/src/app/HtmlClient.cpp index 88efba8..7826184 100644 --- a/src/app/HtmlClient.cpp +++ b/src/app/HtmlClient.cpp @@ -1 +1,11 @@ #include "HtmlClient.h" + +HtmlClient::HtmlClient() : WiFiClient() +{ + +} + +HtmlClient::~HtmlClient() +{ + +} diff --git a/src/app/HtmlClient.h b/src/app/HtmlClient.h index 3cf3529..a371fba 100644 --- a/src/app/HtmlClient.h +++ b/src/app/HtmlClient.h @@ -1,11 +1,35 @@ #ifndef HTMLCLIENT_H #define HTMLCLIENT_H -class HtmlClient +#include + +class HtmlClient : WiFiClient { public: + HtmlClient(); + virtual ~HtmlClient(); + + boolean sendHtmlQuery(); + uint16_t readHtmlResponse(uint8_t *buffer); protected: private: }; -#endif //HTMLCLIENT_H \ No newline at end of file +#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 +}; + */