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 lets users enable or disable the DHCP server. In AP mode, the DHCP server is enabled by default. This configuration is persistent according to the system-persistent configuration.
An example of enabling the DHCP server:
_i16 Status;
Status = sl_NetAppStart(SL_NETAPP_DHCP_SERVER_ID); //enable the DHCP serverif( Status )
{
// error
}
An example of disabling the DHCP server:
_i16 Status;
Status = sl_NetAppStop(SL_NETAPP_DHCP_SERVER_ID); //disable the DHCP serverif( Status )
{
// error
}