Skip to content

Commit 588f75f

Browse files
authored
Merge pull request #19 from grandeurtech/development
ESP8266 issue caused by solving compile issue for ESP32 is solved.
2 parents 7a3da84 + 7bef2e8 commit 588f75f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/arduinoWebSockets/WebSockets.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include <functional>
4141
#endif
4242

43+
// #define DEBUG_ESP_PORT Serial
4344
#ifndef NODEBUG_WEBSOCKETS
4445
#ifdef DEBUG_ESP_PORT
4546
#define DEBUG_WEBSOCKETS(...) DEBUG_ESP_PORT.printf(__VA_ARGS__)

src/arduinoWebSockets/WebSocketsClient.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,13 @@ void WebSocketsClient::loop(void) {
164164
_client.tcp = NULL;
165165
}
166166
_client.ssl = new WEBSOCKETS_NETWORK_SSL_CLASS();
167+
/** Added ourselves */
168+
// Bug Fix
169+
// Patch the Library to allow connection without
170+
// Certificate Origin Confirmation
171+
#if defined(ESP8266)
172+
_client.ssl->setInsecure();
173+
#endif
167174
_client.tcp = _client.ssl;
168175
if(_CA_cert) {
169176
DEBUG_WEBSOCKETS("[WS-Client] setting CA certificate");

0 commit comments

Comments
 (0)