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.
This commit is contained in:
Alex Villacís Lasso
2022-01-17 11:26:49 -05:00
parent f22b097b2e
commit 9f82a7ed3e
2 changed files with 4 additions and 0 deletions

View File

@@ -0,0 +1 @@
-DASYNC_TCP_SSL_ENABLED=1

View File

@@ -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