mirror of
https://github.com/eledio-devices/thirdparty-AsyncTCPSock.git
synced 2025-10-30 16:15:40 +01:00
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:
1
examples/raw_async_https_request/build_opt.h
Normal file
1
examples/raw_async_https_request/build_opt.h
Normal file
@@ -0,0 +1 @@
|
|||||||
|
-DASYNC_TCP_SSL_ENABLED=1
|
||||||
@@ -5,6 +5,9 @@
|
|||||||
const char* ssid = "YOUR-WIFI-SSID-HERE";
|
const char* ssid = "YOUR-WIFI-SSID-HERE";
|
||||||
const char* password = "YOUR-WIFI-PASSWORD-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
|
#ifndef ASYNC_TCP_SSL_ENABLED
|
||||||
#error The macro ASYNC_TCP_SSL_ENABLED has not been correctly enabled in your environment!
|
#error The macro ASYNC_TCP_SSL_ENABLED has not been correctly enabled in your environment!
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user