mDNS not found on ESP IDF 5.1.2
Posted: Fri Jan 05, 2024 10:36 am
I make a WiFi device on ESP32-S3, it should works on STA mode and connects to another access point (AP). AP has DHCP server so when my device is connected to AP is has random IP address. There is an application on AP which should communicate with TCP server on my device, it doesn't know current IP address of my device. So I decided to use DNS server on ESP side to make connection easy: AP application will be connected to TCP server on ESP by host name, not by IP address.
I wonder if it possible to start DNS server on ESP in STA mode. I found out some information about mDNS server. I tried to use the example:
but is was unsuccessful: functions mdns_init() and mdns_hostname_set() not found.
I tried to search in ESP-IDF directory to find the right location of this function, but... I didn't find them at all! There are no files inside ESP-IDF directory which contains these functions. They are called in examples only.
So there is a question: where can I find these finctions?
I use official Espressif-IDE 2.11.1 with ESP-IDF 5.1.2, windows platform.
I wonder if it possible to start DNS server on ESP in STA mode. I found out some information about mDNS server. I tried to use the example:
Code: Select all
ESP_ERROR_CHECK(mdns_init());
ESP_ERROR_CHECK(mdns_hostname_set("name"));
I tried to search in ESP-IDF directory to find the right location of this function, but... I didn't find them at all! There are no files inside ESP-IDF directory which contains these functions. They are called in examples only.
So there is a question: where can I find these finctions?
I use official Espressif-IDE 2.11.1 with ESP-IDF 5.1.2, windows platform.