mdns_register_netif() function
Register custom esp_netif with mDNS functionality mDNS service runs by default on preconfigured interfaces (STA, AP, ETH). This API enables running the service on any customized interface, either using standard WiFi or Ethernet driver or any kind of user defined driver.
Arguments
esp_netif
Pointer to esp-netif interface
Return value
- ESP_OK success - ESP_ERR_INVALID_STATE mDNS is not running or this netif is already registered - ESP_ERR_NO_MEM not enough memory for this in interface in the netif list (see CONFIG_MDNS_MAX_INTERFACES)