You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
I have searched the issue tracker for a similar issue and not found a similar issue.
General issue report
ESP-IDF Version: v5.3.1
Project: Bridge Example
I am trying to run mDNS in a bridge configuration, but it appears to be non-functional.
Initially, I used the default configurations:
However, it did not work as expected.
Next, I registered the bridge network interface using mdns_register_netif and called the mdns_netif_action function, but the output remained the same. I also increased the maximum number of interfaces:
MDNS_MAX_INTERFACES=5
After that, I disabled the predefined network interfaces and tried again by registering only the bridge network interface:
# CONFIG_MDNS_PREDEF_NETIF_STA is not set
# CONFIG_MDNS_PREDEF_NETIF_AP is not set
# CONFIG_MDNS_PREDEF_NETIF_ETH is not set
Despite these changes, mDNS still does not seem to work.
Question:
Is mDNS support for the bridge configuration not implemented, or am I missing something?
Code
esp_err_t err = mdns_init();
if (err != ESP_OK)
{
ESP_LOGE(TAG, "Failed to initialize mDNS: %s", esp_err_to_name(err));
return;
}
err = mdns_hostname_set("mywebbie");
if (err != ESP_OK)
{
ESP_LOGE(TAG, "Failed to set hostname: %s", esp_err_to_name(err));
mdns_free();
return;
}
ESP_LOGI(TAG, "mDNS hostname set to: %s", "mywebbie");
const char *instance_name = "Webbie Device";
err = mdns_instance_name_set(instance_name);
if (err != ESP_OK)
{
ESP_LOGE(TAG, "Failed to set instance name: %s", esp_err_to_name(err));
}
else
{
ESP_LOGI(TAG, "mDNS instance name set to: %s", instance_name);
}
ESP_ERROR_CHECK(mdns_register_netif(br_netif));
ESP_ERROR_CHECK(mdns_netif_action(br_netif, MDNS_EVENT_ENABLE_IP4 /*| MDNS_EVENT_ENABLE_IP6 */ | MDNS_EVENT_IP4_REVERSE_LOOKUP | MDNS_EVENT_IP6_REVERSE_LOOKUP));
The text was updated successfully, but these errors were encountered:
Answers checklist.
General issue report
ESP-IDF Version: v5.3.1
Project: Bridge Example
I am trying to run mDNS in a bridge configuration, but it appears to be non-functional.
Initially, I used the default configurations:
However, it did not work as expected.
Next, I registered the bridge network interface using
mdns_register_netif
and called themdns_netif_action
function, but the output remained the same. I also increased the maximum number of interfaces:After that, I disabled the predefined network interfaces and tried again by registering only the bridge network interface:
Despite these changes, mDNS still does not seem to work.
Question:
Is mDNS support for the bridge configuration not implemented, or am I missing something?
Code
The text was updated successfully, but these errors were encountered: