Files
esp-protocols/components/mdns
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
..
2024-06-04 16:43:44 +04:00
2024-06-04 16:43:44 +04:00
2024-06-04 16:43:44 +04:00
2023-05-12 12:21:55 +04:00

mDNS Service

Component Registry

mDNS is a multicast UDP service that is used to provide local network service and host discovery.

Examples

Get started with example test Example:

Documentation