SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
By default the SimpleLink device does not release the DHCP address when a disconnection of the Wi-Fi is requested by the host. However, in some use cases, the release is required even if the lease time is short due to a limited address range at the DHCP server. The SimpleLink device enables a special mode that releases the IP address as Wi-Fi disconnect commands are received from the host application. This mode is not enabled by default.
Example:
_i16 Status;
Status = sl_NetCfgSet(SL_NETCFG_IPV4_STA_ADDR_MODE,SL_NETCFG_IF_ENABLE_DHCP_RELEASE,0,0);
if( Status )
{
// error
}