Commit Graph

88 Commits

Author SHA1 Message Date
Aruna Tennakoon
899cfbdbe7 feat: Support Nano 33 IoT, MKR WIFI 1010, XIAO, Wio Terminal (#901) 2024-08-24 12:01:45 +02:00
Aruna Tennakoon
dcfb0df665 feat: Support Arduino Nano 33 IoT, MKR WIFI 1010 (#898) 2024-08-11 09:09:47 +02:00
Hasenradball
503105a9fe Remove compiler warnings (#854)
* [Prevent unwanted Compiler Warnings]: Issue #772
2024-01-05 17:24:45 +01:00
Links2004
be9fd8e267 fix getSocketNumber for ESP 2024-01-05 15:26:59 +01:00
patrick
3352c833b8 - Fix memory leak by calling delete _server in the WebSocketsServer destructor.
- Improve performance by looking for match to existing socket before creating a new one
2024-01-05 15:17:42 +01:00
Links
a4f13a1410 clang-format 2023-05-01 14:36:26 +02:00
Earle F. Philhower, III
d9a5c629f0 Port to Raspberry Pi Pico W core
Add support for the onboard WiFi chip on the Raspberry Pi Pico W
(RP2040 based ) board using the arduino-pico Arduino core at
https://github.com/earlephilhower/arduino-pico

The PicoW WiFi stack is a mashup of the ESP8266 and ESP32 cores, so
only minimal changes were required.  Defines a new NETWORK_TYPE for
the PicoW.

ESP8266 examples renames to ESP8266_PICO because they all work unmodified
(except for OTA which is handled differently on the Pico)
2023-05-01 08:50:01 +02:00
sivar2311
3073c156b1 Fix compiler warning "function may return address of local variable" 2022-06-24 10:26:43 +02:00
Links
28c0cf3094 fix #728 dropNativeClient null ptr 2022-04-05 19:11:11 +02:00
Links
ab9af162b2 fix code style 2022-04-05 19:10:57 +02:00
mvermand22
108090e8cf Update WebSocketsServer.cpp
Created a dummy client in order to be able to drop the TCP Client.
2021-09-10 22:55:37 +02:00
Links
0ecef8c552 Fixing WebSocket Close see #610 2021-01-19 16:58:37 +01:00
Links
39e6a8e709 print version in DEBUG mode 2021-01-07 10:14:30 +01:00
Links
822618f606 code style fix 2021-01-05 21:18:30 +01:00
david gauchard
e7ab913693 fix clearing _Client[] 2020-11-26 19:33:18 +01:00
david gauchard
52547ec47c fix clients init logic 2020-11-26 19:33:18 +01:00
david gauchard
74411bf729 use native contructor and destructor to initialize WSclient_t 2020-11-26 19:33:18 +01:00
Links
4f52a0f38e cleanup server client init 2020-11-21 14:07:32 +01:00
Links
28cd929e7e code style 2020-11-21 14:06:30 +01:00
david gauchard
826c6b423a esp8266: share port 80 with regular webserver (#575) 2020-11-21 13:51:16 +01:00
Markus
13a304a8c9 Merge pull request #569 from Links2004/esp8266_bareSSL_native
ESP8266 bare ssl native
2020-10-04 15:40:43 +02:00
Links
91b02341ba Native BareSSL support for ESP8266
see #557, #509, #492, #555, #352
2020-10-04 14:49:22 +02:00
Ben Hencke
083683425f avoid flush on esp32, add/fix debugs, longer yield when waiting for data
flush causes a bunch of reads as we try to close the socket on esp32. I
think flush is broken on that platform. the comments indicate confusion.

added some debug logs for important cases that were missing them, some
missing newlines to exisitng logs.

added a longer yield when waiting for data, in some super busy cases it
could trigger a task watchdog or otherwise starve the system. (yield
alone doesn't always switch to lower priority tasks)

make some other yields conditional to avoid some waste when it would
double-yield.
2020-09-16 11:02:02 -07:00
Ben Hencke
4acc7eff8a add api to check connectedness of clients by num 2020-09-08 09:54:33 -07:00
Links
9048ef9ee4 code style 2020-05-03 09:28:55 +02:00
Links
b9e1336826 add new define for yield WEBSOCKETS_YIELD 2020-05-03 09:12:03 +02:00
maurus_fritsche
674a6e98c9 Implemented HeartBeat in WebSocketsServer 2020-02-10 19:45:55 +01:00
Luc
bd158c9c5c Fix warnings in platformIO
Fix : warning: enumeration value 'WStype_ERROR' not handled in switch [-Wswitch]
Fix : warning: variable 'ip' set but not used [-Wunused-but-set-variable]
2019-07-04 12:58:37 +02:00
Links
3063ad27ae clang-format 2019-06-10 13:00:01 +02:00
Links
0aa07421a6 add events for ping / pong rx #382 2019-05-30 20:15:03 +02:00
Links
8ec27b0468 fix indexOf #430 2019-05-30 16:52:20 +02:00
Sanket Patel
4db22fe5e4 make masking RFC complaint and fix #208 2018-09-23 16:49:10 +05:30
Markus
bdee8b9744 call end for ESP8266_ASYNC TCP Server 2018-06-21 09:30:11 +02:00
Links
bde97179bf fix unused parameter warnings
fix switch warinings

part of #319
2018-05-12 11:39:59 +02:00
Links
a796079b0c fix code style 2018-05-12 11:27:03 +02:00
Links
e8c0d775fb fix #146 HTTP Header handler 2018-05-12 11:22:16 +02:00
Links
4b33575af1 add connectedClients see #242 2018-05-10 20:43:08 +02:00
Links
ea8e81c6ce add close #322 2018-05-10 18:56:31 +02:00
Links
887683fabb Merge branch 'master' into esp32 2018-02-06 20:24:03 +01:00
Markus
c5461d5779 memset zero _clients struct for server
fixes #244
2017-10-06 18:30:05 +02:00
Markus
fa580a568f Merge pull request #223 from robokoding/master
Add ESP32 support from @robokoding
2017-09-20 18:53:55 +02:00
Silver Kuusik
83a1539e1e fix: ESP32 new client connection 2017-09-03 09:55:15 +02:00
Silver Kuusik
4c1c5378cb esp32 no hasClient function 2017-07-30 01:40:36 +02:00
Silver Kuusik
1d40160d99 added esp32 support 2017-07-30 00:54:17 +02:00
Links
adb52b11e9 handle cases when not all data can be written to TCP stack #187 2017-04-09 17:58:23 +02:00
Links
81e567b248 send 401 header too if auth string is empty #116 2017-03-18 10:35:23 +01:00
Philippe Guay
26140be6c9 fix #150 typo lenght -> length 2017-03-06 15:09:03 -05:00
Links
34a2d282e4 allow to moves all Header strings to Flash (~300 Byte) #152 2017-02-22 15:30:58 +01:00
Links
e93a323e56 add support for Fragmentation / continuation opcode Receive 2017-02-22 14:29:26 +01:00
Carl Ouellette
60e3d1080e Merge branch 'master' into master 2017-02-07 16:05:20 -05:00