SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The SimpleLink device offers the ability to update the text field for registered services. The update can be performed for the text field only. The API must be applied with the previous registered service name. If the service was originally created as persistent, the text field can be updated as persistent or as nonpersistent:
If the service was originally created as nonpersistent, the text should be updated with the nonpersistent flag, otherwise an error returns.
Example:
_i16 Status;
_u32 Options;
const signed char AddService[40] = "printer._ipp._tcp.local";
/* Update Service text (as persistent)*/
Options = SL_NETAPP_MDNS_OPTIONS_IS_UNIQUE_BIT | SL_NETAPP_MDNS_IPV4_ONLY_SERVICE | SL_NETAPP_MDNS_OPTION_UPDATE_TEXT;
Status = sl_NetAppMDNSRegisterService(AddService, sizeof(AddService), "Printer=2;Size=A3;size=8", strlen("Printer=2;Size=A3;size=8"), 4578, 120, Options);
if( Status )
{
/* Error */
}