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
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
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
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
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
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
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
2024-06-28 08:44:02 +02:00
david-cermak
68da69e4d8
Merge pull request #602 from david-cermak/bump/eppp
...
bump(eppp): 0.1.1 -> 0.2.0
2024-06-28 07:55:05 +02:00
david-cermak
c6e2eb2dac
Merge pull request #556 from leeebo/master
...
feat(esp_modem): example add esp32p4 usb support (IDFGH-12673)
2024-06-24 15:51:57 +02:00
David Cermak
a9dd78ffad
bump(eppp): 0.1.1 -> 0.2.0
...
0.2.0
Features
- Add support for SDIO transport (085dd790 )
Bug Fixes
- Fixed strict prototype API decl issue in SDIO (eb09e426 )
- Fix SIDO host to check/clear interrupts atomically (402176c9 )
2024-06-24 15:50:50 +02:00
David Cermak
eb09e42638
fix(eppp): Fixed strict prototype API decl issue in SDIO
2024-06-24 15:50:40 +02:00
Li Bo
adafeae5cf
feat(esp_modem): example add esp32p4 usb support
...
1. support ec20 cat.4 module in example modem_console and pppos_client
2. support esp32p4 in example modem_console and pppos_client
2024-06-24 18:55:20 +08:00
David Cermak
5fe3870494
bump(wifi_remote): 0.2.3 -> 0.3.0
...
0.3.0
Features
- add esp_wifi_internal_tx_by_ref (ba35d14e )
- Make wifi_remote depend on esp_hosted (ac9972aa )
2024-06-24 09:40:25 +02:00
David Cermak
402176c9e0
fix(eppp): Fix SIDO host to check/clear interrupts atomically
2024-06-24 09:29:42 +02:00
David Cermak
085dd79079
feat(eppp): Add support for SDIO transport
2024-06-24 09:29:42 +02:00
Soh Kam Yung
ba35d14e43
feat(wifi_remote): add esp_wifi_internal_tx_by_ref
...
Add esp_wifi_internal_tx_by_ref as building with CONFIG_SPIRAM=y will
get a linker error caused by an undefined reference to the function.
2024-06-21 15:24:16 +08:00
Jackson Ming Hu
83ea2876fc
feat(websocket): allow using external tcp transport handle
2024-06-21 14:47:03 +10:00
Euripedes Rocha
c714d24d75
bump(mqtt_cxx): 0.3.0 -> 0.4.0
...
0.4.0
Bug Fixes
- Adds missing configuration fields (d4c6d5ed )
2024-06-18 12:49:02 +02:00
Soh Kam Yung
ac9972aa48
feat(wifi_remote): Make wifi_remote depend on esp_hosted
...
Co-authored-by: david-cermak <38914379+david-cermak@users.noreply.github.com >
2024-06-18 11:14:09 +08:00