-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Labels
Comments
github-actions
bot
changed the title
service port=0 in mdns_service_add causes a error
service port=0 in mdns_service_add causes a error (IDFGH-13429)
Aug 8, 2024
david-cermak
added a commit
to david-cermak/esp-protocols
that referenced
this issue
Jan 10, 2025
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.
I use ipv4 address.
My logging:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: