mdns_query_srv() function
Query mDNS for SRV record
Arguments
instance_name
service instance name
service_type
service type (_http, _arduino, _ftp etc.)
proto
service protocol (_tcp, _udp, etc.)
timeout
time in milliseconds to wait for answer.
result
pointer to the result of the query
Return value
- ESP_OK success - ESP_ERR_INVALID_STATE mDNS is not running - ESP_ERR_NO_MEM memory error - ESP_ERR_INVALID_ARG parameter error
![]()
esp_err_t err = mdns_query_srv(instance, service, proto, timeout, &results);
mdns_query_srv() is called by 1 function and calls 2 functions:
![]()
mdns_query_srv()
mdns_query_srv():
![]()
mdns_query_srv()