-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAsyncHttpClient.h
More file actions
34 lines (29 loc) · 774 Bytes
/
Copy pathAsyncHttpClient.h
File metadata and controls
34 lines (29 loc) · 774 Bytes
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
/*
AsyncHttpClient.h - Library for sending simple data via HTTP GET/POST.
Created by Jonathan Strauss, July 27, 2020.
*/
#ifndef AsyncHttpClient_h
#define AsyncHttpClient_h
#include "Arduino.h"
#include "ESPAsyncTCP.h"
struct AsyncHttpClient
{
String _type;
String _fullUrl;
String _hostname;
int _port;
String _dataMode;
String _data;
bool _debug = false;
void getHostname(String url);
AsyncClient *aClient = NULL;
void init(String type, String fullUrl, String dataMode, String data);
void init(String type, String fullUrl);
void setType(String type);
void setFullURL(String fullUrl);
void setDataMode(String dataMode);
void setData(String data);
void setDebug(bool debug);
void send();
};
#endif