mdns_service_instance_name_set_for_host() function
Set instance name for service with hostname
Arguments
instance_old
original instance name
service_type
service type (_http, _ftp, etc)
proto
service protocol (_tcp, _udp)
hostname
service hostname. If NULL, local hostname will be used.
instance_name
instance name to set
Return value
- ESP_OK success - ESP_ERR_INVALID_ARG Parameter error - ESP_ERR_NOT_FOUND Service not found - ESP_ERR_NO_MEM memory error