Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 9f82a7e

Browse files
committed
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.
1 parent f22b097 commit 9f82a7e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-DASYNC_TCP_SSL_ENABLED=1

examples/raw_async_https_request/raw_async_https_request.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
const char* ssid = "YOUR-WIFI-SSID-HERE";
66
const char* password = "YOUR-WIFI-PASSWORD-HERE";
77

8+
// On your Arduino projects, create the file build_opt.h if it does not exist
9+
// and add the following single line to enable AsyncTCP SSL support:
10+
// -DASYNC_TCP_SSL_ENABLED=1
811
#ifndef ASYNC_TCP_SSL_ENABLED
912
#error The macro ASYNC_TCP_SSL_ENABLED has not been correctly enabled in your environment!
1013
#endif

0 commit comments

Comments
 (0)