mdns_netif_action() function
Set esp_netif to a desired state, or perform a desired action, such as enable/disable this interface or send announcement packets to this netif * This function is used to enable (probe, resolve conflicts and announce), announce, or disable (send bye) mDNS services on the specified network interface. * This function must be called if users registers a specific interface using mdns_register_netif() to enable mDNS services on that interface. * This function could be used in IP/connection event handlers to automatically enable/announce mDNS services when network properties change and/or disable them on disconnection.
Arguments
esp_netif
Pointer to esp-netif interface
event_action
Disable/Enable/Announce on this interface over IPv4/IPv6 protocol. Actions enumerated in mdns_event_actions_t type.
Return value
- ESP_OK success - ESP_ERR_INVALID_STATE mDNS is not running or this netif is not registered - ESP_ERR_NO_MEM memory error
mdns_netif_action() calls 2 functions:
![]()
mdns_netif_action()
mdns_netif_action():
![]()
mdns_netif_action()