Skip to content

Commit 9a56e85

Browse files
Fix HTTPUpdateServer library build
Need to remove dot-a linkage since there are no .cpp files in the directory anymore due to templates.
1 parent 1559a3b commit 9a56e85

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

libraries/ESP8266HTTPUpdateServer/examples/SecureHTTPSUpdater/SecureHTTPSUpdater.ino

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,21 @@
4242
This example is released into the public domain.
4343
*/
4444

45+
// AXTLS is deprecated, do not use in new code.
46+
#pragma GCC diagnostic push
47+
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
48+
4549
#include <ESP8266WiFi.h>
4650
#include <WiFiClient.h>
4751
#include <ESP8266WebServerSecure.h>
4852
#include <ESP8266mDNS.h>
4953
#include <ESP8266HTTPUpdateServer.h>
54+
#include <WiFiServerSecure.h>
55+
#include <WiFiServerSecureAxTLS.h>
56+
#include <WiFiClientSecure.h>
57+
#include <WiFiClientSecureAxTLS.h>
58+
59+
#pragma GCC diagnostic pop
5060

5161
#ifndef STASSID
5262
#define STASSID "your-ssid"
@@ -60,7 +70,7 @@ const char* update_password = "admin";
6070
const char* ssid = STASSID;
6171
const char* password = STAPSK;
6272

63-
ESP8266WebServerSecure httpServer(443);
73+
ESP8266WebServerTemplate<axTLS::WiFiServerSecure, axTLS::WiFiClientSecure> httpServer(443);
6474
ESP8266HTTPUpdateServerTemplate<axTLS::WiFiServerSecure, axTLS::WiFiClientSecure> httpUpdater;
6575

6676
// The certificate is stored in PMEM

libraries/ESP8266HTTPUpdateServer/library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ paragraph=The library accepts HTTP post requests to the /update url, and updates
77
category=Communication
88
url=
99
architectures=esp8266
10-
dot_a_linkage=true
10+
dot_a_linkage=false

0 commit comments

Comments
 (0)