SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
A service can be unregistered by using the correct API with the service name. Setting the length variable to zero deletes all services at once.
If the service was originally created as persistent, it can be unregistered as persistent or as nonpersistent:
If the service was originally created as nonpersistent, unregistering it is done with the nonpersistent flag accordingly, otherwise an error returns.
Example:
_i16 Status;
_u32 Options;
const signed char AddService[40] = "printer._ipp._tcp.local";
Options = SL_NETAPP_MDNS_OPTIONS_IS_NOT_PERSISTENT;
Status = sl_NetAppMDNSUnRegisterService(AddService,strlen(AddService),Options);
if( Status )
{
/* Error */
}