-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
service port=0 in mdns_service_add causes a error (IDFGH-13429) #14335
Comments
Thanks for reporting, fixing in espressif/esp-protocols#730 |
With this fix, will the following code work?
|
Seems like it: ESP_ERROR_CHECK( mdns_init() );
ESP_ERROR_CHECK( mdns_hostname_set(hostname) );
ESP_LOGI(TAG, "mdns hostname set to: [%s]", hostname);
ESP_ERROR_CHECK( mdns_instance_name_set(EXAMPLE_MDNS_INSTANCE) );
ESP_ERROR_CHECK( mdns_service_add(NULL, "_device-info", "_tcp", 0, NULL, 0) );
|
I use this. but don't work.
|
The fix hasn't been merged yet. It's not included in the v1.4.3 (pushed only a quick release the other day to publish that "zero item subtypes" fix) This issue will be closed once the fix lands on master. To test it locally you can:
# idf_component.yml
dependencies:
espressif/mdns:
+ override_path: /path/to/esp_protocol_repo/components/mdns
$ cd /path/to/esp_protocol_repo/
$ git fetch origin pull/730/head && git checkout FETCH_HEAD |
Thank you for your comment. Once the fix is in master, I will close this issue. |
The fix's been merged and published in mdns |
We have confirmed that it works properly with mdns1.5.1. |
Answers checklist.
IDF version.
v5.2.2-420-gc4fc74a6de
Espressif SoC revision.
Chip is ESP32D0WDQ6 (revision 1)
Operating System used.
Linux
How did you build your project?
Command line with CMake
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32 Development Board
Power Supply used.
USB
What is the expected behavior?
service port=0 in mdns_service_add not causes a error.
What is the actual behavior?
service port=0 in mdns_service_add causes a error
Steps to reproduce.
Debug Logs.
More Information.
The samba service on the Linux server registers the service on port #445 and #0.
It works correctly unless port # is 0.
However, Service Type in device-info does not have port #.
About device-info
http://www.dns-sd.org/servicetypes.html
The text was updated successfully, but these errors were encountered: