Skip to content

Commit

Permalink
Update/fix SSL example sketch to include required build_opt.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
avillacis committed Jan 17, 2022
1 parent f22b097 commit 9f82a7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/raw_async_https_request/build_opt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-DASYNC_TCP_SSL_ENABLED=1
3 changes: 3 additions & 0 deletions examples/raw_async_https_request/raw_async_https_request.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f82a7e

Please sign in to comment.