Skip to content

Commit

Permalink
Some awesome title
Browse files Browse the repository at this point in the history
Why:

- ...

This change addresses the need by:

- ...
  • Loading branch information
moritz89 committed Jun 16, 2024
1 parent 9bcff4e commit 8002676
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@

#include <WebSocketsClient.h>

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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 8002676

Please sign in to comment.