Commit Graph

61 Commits

Author SHA1 Message Date
Hasenradball
503105a9fe Remove compiler warnings (#854)
* [Prevent unwanted Compiler Warnings]: Issue #772
2024-01-05 17:24:45 +01:00
Links2004
da7efc789e update github actions to arduino-cli for build tests 2024-01-05 14:57:05 +01:00
matth-x
30d5e13666 set minimum bufsize for base64 encode 2023-08-19 21:16:37 +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
Links
ab9af162b2 fix code style 2022-04-05 19:10:57 +02:00
Khoi Hoang
61ea44942e Suppress esp32/sha.h warning 2022-04-05 18:55:48 +02:00
Links
4db14451fb clang-format 2020-10-26 17:04:19 +01: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
Links
ba6275e7fe fix #525 (detect ESP32 vesion) 2020-07-11 17:55:18 +02:00
Links
b9e1336826 add new define for yield WEBSOCKETS_YIELD 2020-05-03 09:12:03 +02:00
Markus
c3f01e43fc Merge pull request #514 from simap/master
read can return -1, check for this to avoid corrupting protocol
2020-02-15 22:18:48 +01:00
Ben Hencke
ebd7a528ac add a yield here for esp32 to avoid a busy loop
if data isn't available yet, but is expected, yielding here is nicer
than burning the cpu in a loop, just like in esp8266 case.
2020-02-15 06:43:46 -08:00
Ben Hencke
516911900b read can return -1, check for this to avoid corrupting protocol
fixes #470
2020-02-15 06:37:07 -08:00
Links
794163cec9 Merge branch 'gpn18' into socketio 2019-06-10 13:30:54 +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
Jozef Sovcik
d6dd7be987 disconnecting after pong not received 2018-11-03 13:15:14 +01:00
Links
d325bd338e Merge branch 'master' into gpn18 2018-10-26 20:33:29 +02:00
Jozef Sovcik
68800e2e7a implementing heartbeat 2018-10-23 18:01:33 +02:00
Sanket Patel
4db22fe5e4 make masking RFC complaint and fix #208 2018-09-23 16:49:10 +05:30
Markus
f7a7ab6ab4 wrap reasonCode in define
see #343
2018-07-04 16:29:28 +02:00
Links
f95c014342 basic event sending works 2018-05-12 16:53:34 +02:00
chemicstry
ac8d806085 Fix format specifiers 2018-05-10 01:16:39 +03:00
Links
887683fabb Merge branch 'master' into esp32 2018-02-06 20:24:03 +01:00
PeterEmbedded
a0c714bf10 Update WebSockets.cpp
Added some missing comments
2017-10-16 13:01:00 +02:00
Links
b87bce4466 add virtual to destructor #243 2017-10-04 19:17:21 +02:00
Markus
fa580a568f Merge pull request #223 from robokoding/master
Add ESP32 support from @robokoding
2017-09-20 18:53:55 +02:00
Links
f40a390ab1 workaround windows gcc Template issue (#228, #229) 2017-08-21 21:39:14 +02:00
Silver Kuusik
8c19d7ba48 Update WebSockets.cpp
added esp32 hwcrypto for sha1
2017-07-30 00:21:13 +02:00
Links
c911776860 add virtual to write
fix some naming
2017-04-10 17:49:42 +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
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
Markus
60903a2fa5 mask pong
#34
2017-01-06 10:48:30 +01:00
CAOU123
7810d0d0b3 Make library compatible with Particle devices 2016-10-20 15:46:44 -04:00
Markus
529a86cc26 Merge pull request #90 from kenkus-futurice/master
Add socket.io client
2016-09-11 17:13:57 +02:00
joe
e589b40b25 custom http header validation implementation 2016-06-08 23:04:18 +01:00
Kenta Kusumoto
f8a5acc9b7 Add socket.io client 2016-06-06 15:21:13 +03:00
Markus Sattler
450ca76a74 add return value to all send functions 2016-02-20 12:27:19 +01:00
Markus Sattler
2d87bfa3d6 less ram usage when using strings 2016-02-06 19:21:24 +01:00
Markus Sattler
629f524ea4 fix c&p error in handling of more then 125 byte 2016-01-30 00:34:00 +01:00
Markus Sattler
5c2c257526 fix server disconnect problems 2016-01-23 18:34:30 +01:00
Markus Sattler
57e30e0634 First steps to do async 2016-01-23 16:27:02 +01:00
Markus Sattler
21e959c013 fix #38 2016-01-07 01:21:09 +01:00
Markus Sattler
21e092d179 code cleanup
improve readWait error handling
2015-12-28 16:33:54 +01:00
Markus Sattler
ff33056309 try to send data in one TCP packed if possible,
add random mask support for short frames.
may helps with #34
2015-12-28 03:19:45 +01:00
Markus Sattler
83ac64b72b add support for AVR
this need some more testing but basics are done
2015-12-10 11:16:08 +01:00
Markus Sattler
093797a815 first step for SSL (wss) support 2015-12-10 09:36:18 +01:00
Markus Sattler
7a22dad9d1 try to improve
see: #23
2015-12-05 11:43:03 +01:00
Markus Sattler
92a63e9129 fix problems with ESP8266 core version 2.0.0 2015-11-30 19:46:37 +01:00