mdns_query_ptr() function
Query mDNS for service
Arguments
service_type
service type (_http, _arduino, _ftp etc.)
proto
service protocol (_tcp, _udp, etc.)
timeout
time in milliseconds to wait for answer.
max_results
maximum results to be collected
results
pointer to the results 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_ptr(service, proto, timeout, max_results, &results);
mdns_query_ptr() is called by 1 function and calls 2 functions:
![]()
mdns_query_ptr()
mdns_query_ptr():
![]()
mdns_query_ptr()