@@ -53,44 +53,62 @@ HTTPUpdateResult ESP8266HTTPUpdate::update(const String& url, const String& curr
53
53
HTTPUpdateResult ESP8266HTTPUpdate::update (const String& url, const String& currentVersion)
54
54
{
55
55
HTTPClient http;
56
+ #pragma GCC diagnostic push
57
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
56
58
http.begin (url);
59
+ #pragma GCC diagnostic pop
57
60
return handleUpdate (http, currentVersion, false );
58
61
}
59
62
60
63
HTTPUpdateResult ESP8266HTTPUpdate::update (const String& url, const String& currentVersion,
61
64
const String& httpsFingerprint)
62
65
{
63
66
HTTPClient http;
67
+ #pragma GCC diagnostic push
68
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
64
69
http.begin (url, httpsFingerprint);
70
+ #pragma GCC diagnostic pop
65
71
return handleUpdate (http, currentVersion, false );
66
72
}
67
73
68
74
HTTPUpdateResult ESP8266HTTPUpdate::update (const String& url, const String& currentVersion,
69
75
const uint8_t httpsFingerprint[20 ])
70
76
{
71
77
HTTPClient http;
78
+ #pragma GCC diagnostic push
79
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
72
80
http.begin (url, httpsFingerprint);
81
+ #pragma GCC diagnostic pop
73
82
return handleUpdate (http, currentVersion, false );
74
83
}
75
84
76
85
HTTPUpdateResult ESP8266HTTPUpdate::updateSpiffs (const String& url, const String& currentVersion, const String& httpsFingerprint)
77
86
{
78
87
HTTPClient http;
88
+ #pragma GCC diagnostic push
89
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
79
90
http.begin (url, httpsFingerprint);
91
+ #pragma GCC diagnostic pop
80
92
return handleUpdate (http, currentVersion, true );
81
93
}
82
94
83
95
HTTPUpdateResult ESP8266HTTPUpdate::updateSpiffs (const String& url, const String& currentVersion, const uint8_t httpsFingerprint[20 ])
84
96
{
85
97
HTTPClient http;
98
+ #pragma GCC diagnostic push
99
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
86
100
http.begin (url, httpsFingerprint);
101
+ #pragma GCC diagnostic pop
87
102
return handleUpdate (http, currentVersion, true );
88
103
}
89
104
90
105
HTTPUpdateResult ESP8266HTTPUpdate::updateSpiffs (const String& url, const String& currentVersion)
91
106
{
92
107
HTTPClient http;
108
+ #pragma GCC diagnostic push
109
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
93
110
http.begin (url);
111
+ #pragma GCC diagnostic pop
94
112
return handleUpdate (http, currentVersion, true );
95
113
}
96
114
@@ -110,23 +128,32 @@ HTTPUpdateResult ESP8266HTTPUpdate::update(const String& host, uint16_t port, co
110
128
const String& currentVersion)
111
129
{
112
130
HTTPClient http;
131
+ #pragma GCC diagnostic push
132
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
113
133
http.begin (host, port, uri);
134
+ #pragma GCC diagnostic pop
114
135
return handleUpdate (http, currentVersion, false );
115
136
}
116
137
117
138
HTTPUpdateResult ESP8266HTTPUpdate::update (const String& host, uint16_t port, const String& url,
118
139
const String& currentVersion, const String& httpsFingerprint)
119
140
{
120
141
HTTPClient http;
142
+ #pragma GCC diagnostic push
143
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
121
144
http.begin (host, port, url, httpsFingerprint);
145
+ #pragma GCC diagnostic pop
122
146
return handleUpdate (http, currentVersion, false );
123
147
}
124
148
125
149
HTTPUpdateResult ESP8266HTTPUpdate::update (const String& host, uint16_t port, const String& url,
126
150
const String& currentVersion, const uint8_t httpsFingerprint[20 ])
127
151
{
128
152
HTTPClient http;
153
+ #pragma GCC diagnostic push
154
+ #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
129
155
http.begin (host, port, url, httpsFingerprint);
156
+ #pragma GCC diagnostic pop
130
157
return handleUpdate (http, currentVersion, false );
131
158
}
132
159
0 commit comments