SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The device name is used as the common URN name for the WPS, Wi-Fi Direct, MDNS, and DHCPv4 client. The maximum length of the device name is 32 characters, and the following characters are allowed:
If no device URN name is set, the default name is mysimplelink. If setting the device name with length 0, the device returns to the default name mysimplelink. This configuration is persistent according to the system-persistent configuration.
Example:
/* set new device name */
_i16 Status;
_u8 *device_name = "MY-SIMPLELINK-DEV";
Status = sl_NetAppSet (SL_NETAPP_DEVICE_ID,SL_NETAPP_DEVICE_URN, strlen(device_name), (_u8 *) device_name);
if( Status )
{
/* error */
}