mdns_service_txt_item_set_for_host() function
Set/Add TXT item for service TXT record 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.
key
the key that you want to add/update
value
the new value of the key
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 will be automatically decided by strlen