mdns_service_txt_set() function
Replace all TXT items for service
Arguments
service_type
service type (_http, _ftp, etc)
proto
service protocol (_tcp, _udp)
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