Euripedes
60817dd384
Merge pull request #630 from johanstokking/fix/websocket-esp-tls-errors
...
feat(websocket): propagate esp_tls stack error and cert verify flags
2024-08-20 06:11:55 -03:00
David Cermak
2c1b16617e
fix(mdns): Fix mdns_delegate_hostname_add() to block until done
...
Adds action semaphore the same way it's done in mdns_hostname_add()
There could still potentially be a minor issue when calling these two APIs
simultanously. Will solve the same ways as in 8a690503 (tracked as
IDF-10913)
2024-08-19 14:34:08 +02:00
David Cermak
169405b534
fix(mdns): Fix API races when removing all services
...
Fixes **API race issue** (described in 8a690503 ) for API
mdns_service_remove_all()
2024-08-19 14:33:27 +02:00
David Cermak
643dc6d43b
fix(mdns): Fix API races setting instance name for services
...
Fixes **API race issue** (described in 8a690503 ) for API
mdns_service_instance_name_set_for_host()
2024-08-19 12:38:35 +02:00
David Cermak
f9f234c440
fix(mdns): Fix API races while adding subtypes for services
...
Fixes **API race issue** (described in 8a690503 ) for API
mdns_service_subtype_add_for_host()
2024-08-19 12:38:28 +02:00
David Cermak
3f97a8228b
fix(mdns): Fix API races removing txt item for services
...
Fixes **API race issue** (described in 8a690503 ) for API
mdns_service_txt_item_remove_for_host()
2024-08-19 12:38:20 +02:00
David Cermak
c62b920bb9
fix(mdns): Fix API races adding txt item for services
...
Fixes **API race issue** (described in 8a690503 ) for API
mdns_service_txt_item_set_for_host_with_explicit_value_len()
2024-08-19 12:38:12 +02:00
David Cermak
a927bf3a8d
fix(mdns): Fix API races while setting txt for services
...
Fixes **API race issue** (described in 8a690503 ) for API
mdns_service_txt_set_for_host()
2024-08-19 12:38:03 +02:00
David Cermak
99d5fb27e9
fix(mdns): Fix API races while setting port for services
...
Fixes **API race issue** (described in 8a690503 ) for API
mdns_service_port_set_for_host()
2024-08-19 12:37:52 +02:00
David Cermak
8a690503ed
fix(mdns): Fix services API races to directly add/remove services
...
Original issue (data race when updating hostname): mdns_service_add()
makes a copy of the local hostname and calls using the local copy
mdns_service_add_for_host().
When mdns's hostname is updated the local copy gets out of sync.
**API race issue**: Most of the current API correctly lock the mdns service,
but sometimes unlocks it before sending an action to the action queue,
so it's possible that the situation changes before the actual action
takes place.
**Fix**: After locking the mdns service, we proceed directly with updating
internal structures and do not post actions into the action queue.
**Fix wrtt hostname**: Use mdns_service_add_for_host(hostname=NULL)
for all self hosted services.
MAJOR CHANGE: Fixed mdns API issues when add/remove/update records from multiple threads
This and the following commits fix the API race issues for these mdns APIs:
* mdns_service_add_for_host
* mdns_service_port_set_for_host
* mdns_service_txt_set_for_host
* mdns_service_txt_item_set_for_host_with_explicit_value_len
* mdns_service_txt_item_remove_for_host
* mdns_service_subtype_add_for_host
* mdns_service_instance_name_set_for_host
* mdns_service_remove_for_host
* mdns_service_remove_all
2024-08-19 12:36:05 +02:00
david-cermak
7e5ac87d09
Merge pull request #619 from david-cermak/feat/more_unit_tests
...
[mdns]: Add unit test for services
2024-08-19 12:35:11 +02:00
David Cermak
d4da9cb079
fix(mdns): Fix mdns mdns_lookup_service() to handle empty TXT
...
the lookup_service API calls _copy_mdns_txt_items(), which tries to
allocate new TXT records, but didn't handle the case with no TXT.
Originally the _copy_mdns_txt_items() called calloc() with zero's which
returned NULL (on espressif toolchain), so it's safe, but we could see
an error message:
E (1170) mdns: Cannot allocate memory (line: 6191, free heap: 281368 bytes)
This commit addresses the empty TXT case and gets rid of the error
message.
2024-08-19 11:28:56 +02:00
David Cermak
0660ece128
feat(mdns): Unit tests for add/remove/update deleg/selfhosted services
2024-08-19 11:28:01 +02:00
Richard Allen
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
Richard Allen
9cf4163663
docs(websocket): improve websocket event list
2024-08-16 14:45:50 -05:00
david-cermak
a8f13bc861
Merge pull request #632 from david-cermak/fix/ci_jobs
...
[CI]: Fixes with recent IDF updates
2024-08-16 18:54:31 +02:00
Euripedes Rocha
aecf6f80bf
feat(websocket): Make example to use certificate bundle
...
To easy maintenance, makes the example on websocket client to use
certificate bundle by default.
2024-08-16 16:17:10 +02:00
David Cermak
34d7c1b23b
ci(common): Ignore nearly full partition on C6 builds
2024-08-16 15:41:53 +02:00
david-cermak
6766be6955
Merge pull request #618 from david-cermak/feat/mdns_console_host_more_tests
...
[mdns]: More console tests
2024-08-16 09:29:55 +02:00
Johan Stokking
234f579bd8
feat(websocket): propagate esp_tls stack error and cert verify flags
2024-08-15 21:14:08 +02:00
David Cermak
1e8ede3396
feat(mdns): Add console command for mdns browsing
2024-08-15 16:18:42 +02:00
David Cermak
f107dcd118
feat(mdns): Console test: set instance for service
2024-08-15 16:18:42 +02:00
David Cermak
ee00e97b2b
feat(mdns): Console test: add subtype for service
2024-08-15 16:18:42 +02:00
David Cermak
07b79abf62
feat(mdns): Console test: set port for (delegated) srvs
2024-08-15 16:18:42 +02:00
David Cermak
c9a58d7350
feat(mdns): Console test: add/remove TXT recs for delegated srvs
2024-08-15 16:18:42 +02:00
David Cermak
6b9a6ce65b
feat(mdns): Console test for changing TXT records
2024-08-15 16:18:42 +02:00
David Cermak
43de7e5c4d
feat(mdns): Console test for add/remove delegated service APIs
2024-08-15 16:18:42 +02:00
David Cermak
ce7f326af0
feat(mdns): Console test for add/remove delegated host APIs
2024-08-15 16:18:42 +02:00
David Cermak
a91ead8ef5
feat(mdns): Console test for lookup service APIs
2024-08-15 16:18:42 +02:00
david-cermak
e425a3c504
Merge pull request #617 from david-cermak/feat/mdns_console_host
...
[mdns]: Add linux console functional tests
2024-08-15 15:59:18 +02:00
David Cermak
50d059af07
feat(mdns): Add linux console functional tests
2024-08-15 15:25:49 +02:00
Abhik Roy
f198967c98
Merge pull request #584 from espressif-abhikroy/component/console_cmd_ping
...
feat(console): Added command getaddrinfo, set/get dnsserver to console_cmd_ping
console_cmd_ping-v1.1.0
2024-08-15 19:54:26 +10:00
Abhik Roy
c41e8891ca
bump(console): 1.0.0 -> 1.1.0
...
1.1.0
Features
- Added command getaddrinfo, set/get dnsserver to console_cmd_ping (b80c19d7 )
2024-08-15 19:50:27 +10:00
Abhik Roy
b80c19d72c
feat(console): Added command getaddrinfo, set/get dnsserver to console_cmd_ping
2024-08-15 19:49:53 +10:00
david-cermak
5964eadbf5
Merge pull request #613 from gytxxsy/feat/check_if_txt_changed_when_browsing
...
feat(mdns): check if the txt items is changed when browsing
2024-07-23 18:04:20 +02:00
Suren Gabrielyan
e583848695
Merge pull request #616 from huming2207/master
...
fix(websocket): don't fetch transport from the list if external transport is set
2024-07-22 11:34:26 +04:00
Suren Gabrielyan
cb1bc41386
Merge pull request #605 from gabsuren/ci/websocket_host_fix
...
CI: fix
2024-07-19 20:31:33 +04:00
Suren Gabrielyan
8d91f5fd62
fix(ci): allow unsecure node version for self hosted runner
2024-07-19 17:00:00 +04:00
Suren Gabrielyan
5ccc018a98
fix(websocket): fix of websocket host example
2024-07-19 15:50:07 +04:00
Jackson Ming Hu
9d4d5d2d49
fix(websocket): don't get transport from the list if external transport is used
2024-07-16 16:53:40 +10:00
Xu Si Yu
e2f0477a00
feat(mdns): check if the txt items is changed when browsing
2024-07-16 10:44:05 +08:00
Suren Gabrielyan
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
Suren Gabrielyan
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
Suren Gabrielyan
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
Duco Sebel
3a6720ded6
feat(websocket): Add option to set and use cert_common_name in Websocket client
2024-07-10 09:19:48 +02:00
Johan Stokking
333a68936a
feat(websocket): adding support for if_name when using WSS transport
2024-07-05 13:34:03 +02:00
Suren Gabrielyan
25d8423e6d
Merge pull request #594 from erkia/erkia/ws-reconnect-timeout
...
feat(esp_websocket_client): allow updating reconnect timeout for retry backoffs (IDFGH-13016)
2024-07-03 10:16:05 +04:00
Erki Aring
bd9f062709
feat(websocket): allow updating reconnect timeout for retry backoffs
2024-07-02 21:07:50 +03:00
Euripedes
9152cfcf82
Merge pull request #598 from euripedesrocha/bump_mqtt_cxx040
...
bump(mqtt_cxx): 0.3.0 -> 0.4.0
mqtt_cxx-v0.4.0
2024-07-02 07:36:30 -03:00
david-cermak
8195fc4b8f
Merge pull request #601 from david-cermak/bump/wifi_remote
...
bump(wifi_remote): 0.2.3 -> 0.3.0
wifi_remote-v0.3.0
2024-06-28 08:44:02 +02:00