mdns_query_generic() function
Generic mDNS query All following query methods are derived from this one
Arguments
name
service instance or host name (NULL for PTR queries)
service_type
service type (_http, _arduino, _ftp etc.) (NULL for host queries)
proto
service protocol (_tcp, _udp, etc.) (NULL for host queries)
type
type of query (MDNS_TYPE_*)
transmission_type
either Unicast query, or Multicast query
timeout
time in milliseconds to wait for answers.
max_results
maximum results to be collected
results
pointer to the results of the query results must be freed using mdns_query_results_free below
Return value
- ESP_OK success - ESP_ERR_INVALID_STATE mDNS is not running - ESP_ERR_NO_MEM memory error - ESP_ERR_INVALID_ARG timeout was not given
mdns_query_generic() is called by 1 function and calls 5 functions:
![]()
mdns_query_generic()
mdns_query_generic() reads 5 variables:
![]()
mdns_query_generic()