nabto_device_mdns_add_subtype()

DESCRIPTION

Add an additional subtype to the mDNS responses.

The subtype - is added automatically. Other subtypes can be added, such as "heatpump" or "tcptunnel" can be added for easy filtering in the client applications. Subtypes needs to be added before nabto_device_start() is called.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_mdns_add_subtype(NabtoDevice* device, const char* subtype)

PARAMETERS

device:
[in] The device instance
subtype:
[in] The subtype to add

RETURN VALUES

NABTO_DEVICE_EC_OK iff the subtype is added.

EXAMPLES

None.