d7fa24bc20
feat(websocket): add events for begin/end thread
...
Add events to signal the start and end of the
websocket thread handler, only once each per client.
2024-08-16 14:45:54 -05:00
9d4d5d2d49
fix(websocket): don't get transport from the list if external transport is used
2024-07-16 16:53:40 +10:00
906e447193
Merge pull request #573 from huming2207/feature/ws-transport-handle
...
feat(websocket): allow using external TCP transport handle (IDFGH-12825)
2024-07-12 16:50:33 +04:00
15ae280bbe
Merge pull request #608 from johanstokking/feature/websocket/tls_keepalive_ifname
...
feat(websocket): adding support for `if_name` when using WSS transport
2024-07-10 12:37:27 +04:00
e6f9fe2385
Merge pull request #583 from DCSBL/ws-client-common-name
...
feat(websocket_client): Add option to set and use cert_common_name in Websocket client (IDFGH-12926)
2024-07-10 12:29:52 +04:00
3a6720ded6
feat(websocket): Add option to set and use cert_common_name in Websocket client
2024-07-10 09:19:48 +02:00
333a68936a
feat(websocket): adding support for if_name
when using WSS transport
2024-07-05 13:34:03 +02:00
bd9f062709
feat(websocket): allow updating reconnect timeout for retry backoffs
2024-07-02 21:07:50 +03:00
83ea2876fc
feat(websocket): allow using external tcp transport handle
2024-06-21 14:47:03 +10:00
6393fcd79a
fix(websocket): Fix locking issues of esp_websocket_client_send_with_exact_opcode
API
...
Extended examples to cover more cases
Added new config CONFIG_ESP_WS_CLIENT_ENABLE_DYNAMIC_BUFFER for testing
2024-05-17 12:37:10 +04:00
c728eae5ea
feat(websocket): adding support for keep_alive_enable
when using WSS transport
2024-04-22 10:57:36 +04:00
5b467cbf5c
fix(websocket): Skip warn on zero timeout and auto reconnect is disabled
2024-03-06 22:20:48 +01:00
9c54b72e1f
fix(websocket): Fixed to use int return value in Tx functions
2024-02-28 12:48:06 +01:00
16174470ee
fix(websocket): Fixed Tx functions with DYNAMIC_BUFFER
2024-02-28 12:47:59 +01:00
d85311880d
fix(websocket): Close websocket and dispatch event if server does not close within a reasonable amount of time.
2024-01-29 08:01:39 +01:00
2b092e0db4
fix(websocket): Continue waiting for TCP connection to be closed
...
Prevents an issue where WEBSOCKET_EVENT_CLOSED is not sent after
websocket is closed.
2024-01-23 14:58:27 +01:00
774d1c75e6
fix: continuation after FIN in websocket client ( #460 )
2023-12-19 17:00:17 +01:00
f523b4dc84
fix(websocket): consider failure if return value of esp_websocket_client_send_with_exact_opcode
less than 0
2023-11-28 16:40:10 +04:00
ba33588008
fix(websocket): fix of return value for esp_websocket_client_send_with_opcode
API
2023-11-28 12:37:31 +04:00
ac8f1de187
fix(websocket): Return status code correctly on esp_websocket_client_send_with_opcode
2023-10-24 17:23:57 +04:00
39e972544f
feat(websocket): Added new API esp_websocket_client_append_header
2023-10-16 12:27:29 +04:00
fae80e2f3f
feat(websocket): Added new APIs to support fragmented messages transmission
...
Intoduced new APIs`esp_websocket_client_send_text_partial`,
`esp_websocket_client_send_bin_partial`
`esp_websocket_client_send_cont_mgs`
`esp_websocket_client_send_fin`
`esp_websocket_client_send_with_exact_opcode`
2023-10-03 18:43:58 +04:00
a22391ae2c
feat(websocket): Added linux port for websocket
2023-07-18 14:18:39 +04:00
b5177cb23a
fix(websocket): esp_websocket_client client allow sending 0 byte packets
2023-06-01 15:32:18 +04:00
e085826dbb
fix(websocket): Cleaned up printf/format warnings (-Wno-format)
2023-05-17 07:35:21 +02:00
c974c14220
fix(websocket): Added unit tests to CI + minor fix to pass it
2023-05-17 07:14:48 +02:00
8bb207e9bb
Fix weird error message spacings
2023-03-23 11:44:51 +01:00
d047ff569c
esp_websocket_client:
...
* Error handling improved to show status code from server
* Added new API `esp_websocket_client_set_headers`
* Dispatches 'WEBSOCKET_EVENT_BEFORE_CONNECT' event before tcp connection
2023-02-22 11:41:33 +04:00
c6db3ea84c
unite all tags under common structure
...
py test: update tags under common structure
2023-02-17 14:27:34 +01:00
1b134486db
websocket: Support HTTP basic authorization
2023-02-09 15:09:40 +08:00
7ba1085e9f
Merge pull request #32 from 0xFEEDC0DE64/websocketclient-errormsg
...
Add websocket client error message string (IDFGH-7591)
2023-02-08 16:11:38 +01:00
1d6888445d
Add task_name config option
2023-02-08 15:52:03 +01:00
d68624ec4f
Add websocket error messages
2023-02-08 15:35:01 +01:00
f9b47900f2
websocket: Added new API esp_websocket_client_destroy_on_exit
2023-01-24 22:29:09 +04:00
3330b96b10
websocket: make esp_websocket_client_send_with_opcode
a public API
2022-11-07 16:20:34 +04:00
945bd17701
CI: fixing the files to be complient with pre-commit hooks
2022-10-17 18:16:52 +02:00
4cefcd3606
feat(websocket): Optimize memory size for websocket client init
2022-06-28 21:09:05 +08:00
d56b5d90ea
feat(websocket): allow users to attach CA bundle
...
with esp_transport_ssl_crt_bundle_attach(), it is not necessary to
include a specific certificate. other protocol clients, such as
esp_http_client, do the same.
fixes #48
2022-06-02 12:29:22 +07:00
38149c8d9b
Merge pull request #22 from 0xFEEDC0DE64/websocket_client_change_ping_interval
...
Add methods to allow get/set of websocket client ping interval (IDFGH-7096)
2022-05-03 09:26:54 +02:00
9e37f537bd
Implement websocket client connect error
2022-04-26 11:15:57 +02:00
e55f54b69e
Add methods to allow get/set of websocket client ping interval
2022-04-26 11:06:20 +02:00
b72a9ae710
esp_websocket_client: Expose frame fin flag in websocket event
2022-04-15 17:06:03 +01:00
b3c777ad43
freertos: Remove legacy data types
...
This commit removes the usage of all legacy FreeRTOS data types that
are exposed via configENABLE_BACKWARD_COMPATIBILITY. Legacy types can
still be used by enabling CONFIG_FREERTOS_ENABLE_BACKWARD_COMPATIBILITY.
* Original commit: espressif/esp-idf@57fd78f5ba
2022-03-01 12:18:50 +04:00
8ce791e969
websocket: Added configs reconnect_timeout_ms
and network_timeout_ms
...
Closes https://github.com/espressif/esp-idf/issues/8263
* Original commit: espressif/esp-idf@6c26d65203
2022-03-01 12:18:50 +04:00
46bd32d952
websocket: removed deprecated API "esp_websocket_client_send"
...
Closes IDF-1470
* Original commit: espressif/esp-idf@7f6ab93f7e
2022-03-01 12:18:50 +04:00
de7cd72f70
components: Remove repeated keep alive function by ssl layer function
...
In esp_http_client and esp_websocket_client components, esp_transport_tcp_set_keep_alive has been called and keep-alive config has been saved in ssl->cfg.keep_alive_cfg,
So no need to call esp_transport_ssl_set_keep_alive again.
* Original commit: espressif/esp-idf@c79a907e4f
2022-03-01 12:18:50 +04:00
4a608ec1cd
components: Support bind socket to specified interface in esp_http_client and esp_websocket_client component
...
* Original commit: espressif/esp-idf@bead3599ab
2022-03-01 12:18:50 +04:00
f0351ff378
esp_websocket_client: Don't log the filename when logging "Websocket already stop"
...
Progress towards https://jira.espressif.com:8443/browse/IDFGH-4477
* Original commit: espressif/esp-idf@10bde42551
2022-03-01 12:18:50 +04:00
86aa0b8d39
websockets: Set keepalive options after adding transport to the list
...
To be in line with other code and mainly to support base/foundation transport used by both tcp and ssl transport layers
* Original commit: espressif/esp-idf@99805d880f
2022-03-01 12:18:50 +04:00
1933367f63
websocket: Add configurable ping interval
...
Merges https://github.com/espressif/esp-idf/pull/6399
Signed-off-by: David Cermak <cermak@espressif.com >
* Original commit: espressif/esp-idf@9ff9137e7a
2022-03-01 12:18:50 +04:00