File tree Expand file tree Collapse file tree 4 files changed +15
-16
lines changed Expand file tree Collapse file tree 4 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 50
50
DEBUG_ESP_PORT.flush (); \
51
51
}
52
52
#else
53
- // #define DEBUG_WEBSOCKETS(...) os_printf( __VA_ARGS__ )
53
+ // #define DEBUG_WEBSOCKETS(...) os_printf( __VA_ARGS__ )
54
54
#endif
55
55
#endif
56
56
67
67
#define WEBSOCKETS_USE_BIG_MEM
68
68
#define GET_FREE_HEAP ESP.getFreeHeap()
69
69
// moves all Header strings to Flash (~300 Byte)
70
- // #define WEBSOCKETS_SAVE_RAM
70
+ // #define WEBSOCKETS_SAVE_RAM
71
71
72
72
#if defined(ESP8266)
73
73
#define WEBSOCKETS_YIELD () delay(0 )
122
122
// select Network type based
123
123
#if defined(ESP8266) || defined(ESP31B)
124
124
#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266
125
- // #define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266_ASYNC
126
- // #define WEBSOCKETS_NETWORK_TYPE NETWORK_W5100
125
+ // #define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP8266_ASYNC
126
+ // #define WEBSOCKETS_NETWORK_TYPE NETWORK_W5100
127
127
128
128
#elif defined(ESP32)
129
129
#define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP32
130
- // #define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP32_ETH
130
+ // #define WEBSOCKETS_NETWORK_TYPE NETWORK_ESP32_ETH
131
131
132
132
#elif defined(ARDUINO_ARCH_RP2040)
133
133
#define WEBSOCKETS_NETWORK_TYPE NETWORK_RP2040
Original file line number Diff line number Diff line change 28
28
#include < WebSocketsServer.h>
29
29
#include < ESP8266WebServer.h>
30
30
31
-
32
- #if ((WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266) || (WEBSOCKETS_NETWORK_TYPE == NETWORK_RP2040)) && WEBSERVER_HAS_HOOK
31
+ #if ((WEBSOCKETS_NETWORK_TYPE == NETWORK_ESP8266) || (WEBSOCKETS_NETWORK_TYPE == NETWORK_RP2040)) && WEBSERVER_HAS_HOOK
33
32
34
33
class WebSockets4WebServer : public WebSocketsServerCore {
35
34
#if defined(ESP8266)
36
- using WebServerClass = ESP8266WebServer;
35
+ using WebServerClass = ESP8266WebServer;
37
36
#else
38
- using WebServerClass = WebServer;
37
+ using WebServerClass = WebServer;
39
38
#endif
40
39
41
40
public:
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ void WebSocketsClient::loop(void) {
226
226
_client.ssl ->setCACert (_CA_cert);
227
227
#elif defined(ESP8266) && defined(SSL_AXTLS)
228
228
_client.ssl ->setCACert ((const uint8_t *)_CA_cert, strlen (_CA_cert) + 1 );
229
- #elif (defined(ESP8266) || defined(ARDUINO_ARCH_RP2040)) && defined(SSL_BARESSL)
229
+ #elif (defined(ESP8266) || defined(ARDUINO_ARCH_RP2040)) && defined(SSL_BARESSL)
230
230
_client.ssl ->setTrustAnchors (_CA_cert);
231
231
#else
232
232
#error setCACert not implemented
@@ -428,9 +428,9 @@ bool WebSocketsClient::isConnected(void) {
428
428
return (_client.status == WSC_CONNECTED);
429
429
}
430
430
431
- // #################################################################################
432
- // #################################################################################
433
- // #################################################################################
431
+ // #################################################################################
432
+ // #################################################################################
433
+ // #################################################################################
434
434
435
435
/* *
436
436
*
Original file line number Diff line number Diff line change @@ -414,9 +414,9 @@ IPAddress WebSocketsServerCore::remoteIP(uint8_t num) {
414
414
}
415
415
#endif
416
416
417
- // #################################################################################
418
- // #################################################################################
419
- // #################################################################################
417
+ // #################################################################################
418
+ // #################################################################################
419
+ // #################################################################################
420
420
421
421
/* *
422
422
* handle new client connection
You can’t perform that action at this time.
0 commit comments