mdns_service_txt_set_for_host() function
Replace all TXT items for service with hostname
Arguments
service_type
service type (_http, _ftp, etc)
proto
service protocol (_tcp, _udp)
hostname
service hostname. If NULL, local hostname will be used.
txt
array of TXT data (eg. {{"var","val"},{"other","2"}})
num_items
number of items in TXT data
Return value
- ESP_OK success - ESP_ERR_INVALID_ARG Parameter error - ESP_ERR_NOT_FOUND Service not found - ESP_ERR_NO_MEM memory error
Notes
The value length of txt items will be automatically decided by strlen