nabto_device_mdns_add_txt_item()

DESCRIPTION

Add additional txt items to the mDNS responses. By default the productid and deviceid is added to mDNS responses.

If the device is running when txt records are added the service is unpublished and published again with the new items.

If the key already exists it is overwritten with the new value.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_mdns_add_txt_item(NabtoDevice* device, const char* key, const char* value)

PARAMETERS

device:
[in] The device instance
key:
[in] The txt item key
value:
[in] The txt item value

RETURNS

NABTO_DEVICE_EC_OK Iff the txt item was added to the list of txt items