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
2023-03-31 12:04:46 +04:00

Collection of protocol components for ESP-IDF

How to use

The ESP-Protocols repository contains a collection of protocol components for ESP-IDF. Additionally, each component is available in IDF Component Registry. Please refer to instructions in ESP-IDF

Components

esp_modem

mDNS

esp_websocket_client

ASIO port

esp_mqtt_cxx

console_simple_init

console_cmd_ping

console_cmd_ifconfig

console_cmd_wifi

esp_wifi_remote

mbedtls_cxx

S
Description
Collection of ESP-IDF components related to networking protocols
Readme
36 MiB
Languages
C 56.2%
C++ 36.3%
Python 4.4%
CMake 2.3%
Shell 0.3%
Other 0.5%