b71c49c277
websocket: add configurable timeout for PONG not received
...
Closes IDF-1744
* Original commit: espressif/esp-idf@0049385850
2022-03-01 12:18:50 +04:00
f8e3ba7813
websocket client: the client now aborts the connection if send fails.
...
Closes IDF-1744
* Original commit: espressif/esp-idf@6bebfc84f3
2022-03-01 12:18:50 +04:00
7a5b2d5a7d
ws_client: fix fragmented send setting proper opcodes
...
Previous implementation violated the RFC by having both the actual opcode and WS_FIN flag set for all fragments of a message.
Fixed by setting the opcode only for the first fragment and WS_FIN for the last one
Closes IDFGH-2938
Closes https://github.com/espressif/esp-idf/issues/4974
* Original commit: espressif/esp-idf@14992e62c5
2022-03-01 12:18:50 +04:00
17281a515e
esp32: add implementation of esp_timer based on TG0 LAC timer
...
Closes: IDF-979
* Original commit: espressif/esp-idf@739eb05bb9
2022-03-01 12:18:50 +04:00
aec6a75d40
tcp_transport/ws_client: websockets now correctly handle messages longer than buffer
...
transport_ws can now be read multiple times in a row to read frames larger than the buffer.
Added reporting of total payload length and offset to the user in websocket_client.
Added local example test for long messages.
Closes IDF-1083
* Original commit: espressif/esp-idf@ffeda3003c
2022-03-01 12:18:50 +04:00
a6be8e2e3d
websocket: added missing event data
...
user_context was missing from websocket event data, added. Also added the websocket client handle to the event data.
Removed unused event data struct.
Closes: IDF-1271
* Original commit: espressif/esp-idf@7c0e3765ec
2022-03-01 12:18:50 +04:00
a48b0fafe8
Add User-Agent and additional headers to esp_websocket_client
...
Merges https://github.com/espressif/esp-idf/pull/4345
* Original commit: espressif/esp-idf@9200250f51
2022-03-01 12:18:50 +04:00
1fcc001ae8
ws_client: fix handling timeouts by websocket client.
...
tcp-transport component did not support wait forever. this update uses value of -1 to request this state.
websocket client uses timeouts in RTOS ticks. fixed recalculation to ms (including special value of -1) to use correctly tcp-transport component
Closes https://github.com/espressif/esp-idf/issues/4316
* Original commit: espressif/esp-idf@e1f982921a
2022-03-01 12:18:50 +04:00
d0121b964d
websocket_client: fix locking mechanism in ws-client task and when sending data
...
closes https://github.com/espressif/esp-idf/issues/4169
* Original commit: espressif/esp-idf@7c5011f411
2022-03-01 12:18:50 +04:00
f55d8391c9
ws_client: fix for not sending ping responses, updated to pass events also for PING and PONG messages, added interfaces to send both binary and text data
...
closes https://github.com/espressif/esp-idf/issues/3982
* Original commit: espressif/esp-idf@abf9345b85
2022-03-01 12:18:50 +04:00
f5a26c4d32
websocket_client: fix URI parsing to include also query part in websocket connection path
...
closes https://github.com/espressif/esp-idf/issues/4090
* Original commit: espressif/esp-idf@271e6c4c9c
2022-03-01 12:18:50 +04:00
23f6a1d46e
ws_client: fixed posting to event loop with websocket timeout
...
Executing event loop `esp_event_loop_run()` with timeout causes delays in receiving events from user code. Fixed by removing the timeout to post synchronously.
closes https://github.com/espressif/esp-idf/issues/3957
* Original commit: espressif/esp-idf@50505068c4
2022-03-01 12:18:50 +04:00
2553d65e64
ws_client: added subprotocol configuration option to websocket client
...
closes https://github.com/espressif/esp-idf/issues/3893
* Original commit: espressif/esp-idf@de6ea396f1
2022-03-01 12:18:50 +04:00
67949f94f4
ws_client: fixed path config issue when ws server configured using host and path instead of uri
...
closes https://github.com/espressif/esp-idf/issues/3892
* Original commit: espressif/esp-idf@c0ba9e19fc
2022-03-01 12:18:50 +04:00
bfc88ab76c
ws_client: fixed transport config option when server address configured as host, port, transport rather then uri
...
closes https://github.com/espressif/esp-idf/issues/3891
* Original commit: espressif/esp-idf@adee25d90e
2022-03-01 12:18:50 +04:00
4d644954fe
esp_wifi: wifi support new event mechanism
...
1. WiFi support new event mechanism
2. Update examples to use new event mechanism
* Original commit: espressif/esp-idf@003a9872b7
2022-03-01 12:18:50 +04:00
da74a4a489
tools: Mass fixing of empty prototypes (for -Wstrict-prototypes)
...
* Original commit: espressif/esp-idf@afbaf74007
2022-03-01 12:18:50 +04:00
f718676083
ws_client: fix double delete issue in ws client initialization
...
* Original commit: espressif/esp-idf@9b507c45c8
2022-03-01 12:18:50 +04:00
13a40d2344
ws_client: removed dependency on internal tcp_transport header
...
* Original commit: espressif/esp-idf@d1433564ec
2022-03-01 12:18:50 +04:00
35d6f9a2c6
examples: use new component registration api
...
* Original commit: espressif/esp-idf@6771eead80
2022-03-01 12:18:50 +04:00
f3a0586663
esp_websocket_client: Add websocket client component
...
Closes https://github.com/espressif/esp-idf/issues/2829
* Original commit: espressif/esp-idf@2a2d932cfe
2022-03-01 12:18:50 +04:00