-
Notifications
You must be signed in to change notification settings - Fork 0
/
rz_http.h
54 lines (37 loc) · 952 Bytes
/
rz_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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
TITLE:
rz_http.h
BRIEF:
library
DESC:
Arduino lib for ESP32 http client. Gets the current firmware version on Github
SOURCE:
https://github.com/Zheng-Bote/ESP32_libs
SYNTAX:
#include "rz_http.h"
#include "rz_version.h"
RZ_HTTP *httpclient = new RZ_HTTP();
RZ_Version *versions = new RZ_Version();
checkVersion(versions->checkVersions(appVersion, httpclient->checkFirmware()));
RETURN:
std::string checkFirmware();
std::string getUpdVersion();
HISTORY:
Version | Date | Developer | Comments
------- | ---------- | ---------- | ---------------------------------------------------------------
1.0.0 | 2022-02-26 | RZheng | created
*/
#ifndef rz_http_h
#define rz_http_h
#include "Arduino.h"
class RZ_HTTP {
public:
RZ_HTTP();
std::string checkFirmware();
std::string getUpdVersion();
private:
String _payload;
~RZ_HTTP() {
}
};
#endif