mdns_hostname_get() function
Get the hostname for mDNS server
Arguments
hostname
pointer to the hostname, it should be allocated and hold at least MDNS_NAME_BUF_LEN chars
Return value
- ESP_OK success - ESP_ERR_INVALID_ARG Parameter error - ESP_ERR_INVALID_STATE when mdns is not initialized
mdns_hostname_get() calls 2 functions:
![]()
mdns_hostname_get()
mdns_hostname_get() reads 3 variables:
![]()
mdns_hostname_get()