From 9f82a7ed3e353a37cdf6f333476df91ba8b76127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Mon, 17 Jan 2022 11:26:49 -0500 Subject: [PATCH] Update/fix SSL example sketch to include required build_opt.h Add missing build_opt.h to define the compile macro that is required to actually enable SSL support. Also, add a comment to the source file detailing this same requirement for Arduino projects using AsyncTCPSock. --- examples/raw_async_https_request/build_opt.h | 1 + examples/raw_async_https_request/raw_async_https_request.ino | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 examples/raw_async_https_request/build_opt.h diff --git a/examples/raw_async_https_request/build_opt.h b/examples/raw_async_https_request/build_opt.h new file mode 100644 index 0000000..a29b2d5 --- /dev/null +++ b/examples/raw_async_https_request/build_opt.h @@ -0,0 +1 @@ +-DASYNC_TCP_SSL_ENABLED=1 diff --git a/examples/raw_async_https_request/raw_async_https_request.ino b/examples/raw_async_https_request/raw_async_https_request.ino index d0a89c3..a14d5f8 100644 --- a/examples/raw_async_https_request/raw_async_https_request.ino +++ b/examples/raw_async_https_request/raw_async_https_request.ino @@ -5,6 +5,9 @@ const char* ssid = "YOUR-WIFI-SSID-HERE"; const char* password = "YOUR-WIFI-PASSWORD-HERE"; +// On your Arduino projects, create the file build_opt.h if it does not exist +// and add the following single line to enable AsyncTCP SSL support: +// -DASYNC_TCP_SSL_ENABLED=1 #ifndef ASYNC_TCP_SSL_ENABLED #error The macro ASYNC_TCP_SSL_ENABLED has not been correctly enabled in your environment! #endif