From 800267672e2a48a26aed742ef1a153cd9c3de45e Mon Sep 17 00:00:00 2001 From: Moritz Ulmer Date: Sun, 16 Jun 2024 16:02:28 +0200 Subject: [PATCH] Some awesome title Why: - ... This change addresses the need by: - ... --- .../WebSocketClientSSLBundle/WebSocketClientSSLBundle.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/esp32/WebSocketClientSSLBundle/WebSocketClientSSLBundle.ino b/examples/esp32/WebSocketClientSSLBundle/WebSocketClientSSLBundle.ino index 1765614..b9385a7 100644 --- a/examples/esp32/WebSocketClientSSLBundle/WebSocketClientSSLBundle.ino +++ b/examples/esp32/WebSocketClientSSLBundle/WebSocketClientSSLBundle.ino @@ -11,8 +11,9 @@ #include -extern const uint8_t rootca_crt_bundle_start[] asm( - "_binary_data_cert_x509_crt_bundle_bin_start"); +// Use the incbin library to embedd the cert binary +// extern const uint8_t rootca_crt_bundle_start[] asm( +// "_binary_data_cert_x509_crt_bundle_bin_start"); WiFiMulti wifiMulti; WebSocketsClient webSocket; @@ -110,7 +111,8 @@ void setup() { // server address, port and URL. This server can be flakey. // Expected response: Request served by 0123456789abcdef - webSocket.beginSslWithBundle("echo.websocket.org", 443, "/", rootca_crt_bundle_start, ""); + // webSocket.beginSslWithBundle("echo.websocket.org", 443, "/", rootca_crt_bundle_start, ""); + webSocket.beginSslWithBundle("echo.websocket.org", 443, "/", NULL, ""); // event handler webSocket.onEvent(webSocketEvent);